Syntax |
Error[$][(errornumber)] |
Description |
Returns a String containing the text corresponding to the given error number or the most recent error. |
Comments |
Error$ returns a String, whereas Error returns a String variant. The errornumber parameter is an Integer containing the number of the error message to retrieve. If this parameter is omitted, then the function returns the text corresponding to the most recent runtime error. If no runtime error has occurred, then a zero-length string is returned. If the Error statement was used to generate a user-defined runtime error, then this function will return a zero-length string (""). |
Example |
This example forces error 10, with a subsequent transfer to the TestError label. TestError tests the error and, if not error 55, resets Err to 999 (user-defined error) and returns to the Main subroutine. Sub Main() TestError: |
See Also |
Erl (function); Err (function); Error Handling (topic). |
E |