| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |
Returns -1 if the last ProTOML operation failed, or 0 if it succeeded.
Applications using the ProTOML template normally call GetLastError.
GetLastError PROCEDURE(*CSTRING pErrorText),LONG
| Item | Value |
|---|---|
| Export | TOML_GetLastErrorCode |
| Return type | LONG |
| Calling convention | PASCAL, RAW, DLL(1) |
| Binary name | NAME(‘TOML_GetLastErrorCode’) |
On failure, read TOML_GetLastErrorCode and TOML_GetLastErrorText immediately. The preferred class method converts that pattern into a class result plus retained LastErrorCode and LastErrorText.
ErrorText CSTRING(2048)
ErrorCode LONG
CODE
ErrorCode = Toml.GetLastError(ErrorText)
IF ErrorCode < 0
MESSAGE(ErrorText,'ProTOML Error')
END
| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |