errorcode_return_error_code_number_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== ERRORCODE (return error code number) ====== | |
ERRORCODE( )
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:
errorcode_return_error_code_number_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1