User Tools

Site Tools


errorcode_return_error_code_number_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== ERRORCODE (return error code number) ====== Previous pageReturn to chapter overviewNext page

ERRORCODE( )

blk2blue.jpg

The ERRORCODE procedure returns the code number for any error that was posted. If no error was posted, ERRORCODE returns zero. You should interrogate ERRORCODE immediately after the statement that you suspect may post an error because processing any other statement that could post an error will clear the internal error code.

Return Data Type: LONG

Example:

ADD(Location)              !Add new entry

IF ERRORCODE() = 8         !If not enough memory

MESSAGE('Out of Memory')  !display message

END

See Also:

ERROR

ERRORFILE

FILEERROR

FILEERRORCODE

POPERRORS

PUSHERRORS

Trappable Run Time Errors

errorcode_return_error_code_number_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1