Skip to main content

LastErrorMessage

LastErrorMessage (Function)​

Format​

lasterrormessage
lasterrormessage ( )

returns string_expression

Description​

Returns the message of the last trapped runtime error or warning, the same text BASIC-256 shows when the error is not trapped, without the "ERROR on line" part. The messages are listed on the Error Codes page.

Example​

See examples of usage on OnError and LastError pages.

See Also​

Error Codes, Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Offerror, Onerror, ThrowError, Try / Catch / EndTry

History​

0.9.6zNew To Version