docs

Home Getting Started Browse by Category Class Methods Low-Level API

GetLastError

Copies the current readable class error text and returns the current error code.

Clarion class declaration

GetLastError PROCEDURE(*CSTRING pErrorText),LONG

Purpose

Copies the current readable class error text and returns the current error code.

Parameters

Parameter Type Description
pErrorText *CSTRING Receives the current readable class error text.

Return value

Returns the current class error code and copies the readable text into pErrorText.

Example (Clarion)

ErrorText CSTRING(2048)
ErrorCode LONG

CODE
ErrorCode = Toml.GetLastError(ErrorText)
IF ErrorCode < 0
  MESSAGE(ErrorText,'ProTOML Error')
END

Notes

Home Getting Started Browse by Category Class Methods Low-Level API