Previous: 4.51.2.4.51. ogSetBlending() To the Table of Contents Next: 4.51.2.4.53. ogSetPal()
4.51.2.4.51. ogSetBlending() Table of Contents 4.51.2.4.53. ogSetPal()

- 4.51.2.4.52. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.52. ogSetLastError()


4.51.2.4.52. ogSetLastError()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Sets the state of the last errorcode in a surface.

Declaration:
  function ogSetLastError(newError:ogErrorCode):ogErrorCode; virtual;
Remarks:

Internal critical functions in ObjGfx will set the errorcode by way of calling ogSetLastError(). Since the function is virtual, you may create a child class to intercept the call. This is useful for intercepting errors and giving the user appropiate error messages during an error.

ogGetLastError will return an error related to what specifically failed inside a critical function.

Return value:

Returns the previous error code.

See also:


Previous: 4.51.2.4.51. ogSetBlending() To the Table of Contents Next: 4.51.2.4.53. ogSetPal()
4.51.2.4.51. ogSetBlending() Table of Contents 4.51.2.4.53. ogSetPal()

- 4.51.2.4.52. -