ERRM

Previous  Next

 

message = ERRM( [nErrCode AS INTEGER] ) AS STRING

 


 

Returns the error message associated with the error.  If the nErrCode argument is omitted, then the current error is used otherwise the function returns the error message associated with the supplied code.

 

Error codes and messages.  ERRM returns the message for current error. ERRL returns the error number of the current error.  ERRL returns the line number.  ADDERR can be used to add custom error messages.  ERROR is used to raise an error condition with specified error code.

 

Example:

 

ERROR 34

PRINT ,ERRL;" - ERROR - ";ERRM,