Previous: 4.51.2.4.26. ogGetDataState() To the Table of Contents Next: 4.51.2.4.28. ogGetMaxX()
4.51.2.4.26. ogGetDataState() Table of Contents 4.51.2.4.28. ogGetMaxX()

- 4.51.2.4.27. -
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.27. ogGetLastError()


4.51.2.4.27. ogGetLastError()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Gets the last error that occurred.

Declaration:
  function ogGetLastError:ogErrorCode;
Remarks:

All non-critical functions in ObjGfx (e.g. ogSetPixel(), ogLine(), ogCopy(), et al), are designed to "fail quietly", which means that if an operation isn't possible it won't occur. All critical functions (e.g. ogCreate(), ogAlias(), ogClone()) will return TRUE/FALSE depending on whether they were successful. In the event a critical function failed and appropiate error checking did not occur (i.e. bail out on error) then all future operations should resolve without a crash.

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

Return value:

Returns a member of ogErrorCode or ogOk if no error.

See also:


Previous: 4.51.2.4.26. ogGetDataState() To the Table of Contents Next: 4.51.2.4.28. ogGetMaxX()
4.51.2.4.26. ogGetDataState() Table of Contents 4.51.2.4.28. ogGetMaxX()

- 4.51.2.4.27. -