Syntax |
Erl[()] |
Description |
Returns the line number of the most recent error. |
Comments |
The first line of the script is 1, the second line is 2, and so on. The internal value of Erl is reset to 0 with any of the following statements: Resume, Exit Sub, Exit Function. Thus, if you want to use this value outside an error handler, you must assign it to a variable. |
Example |
This example generates an error and then determines the line on which the error occurred. Sub Main() |
See Also |
Err (function); Error, Error$ (functions); Error Handling (topic). |
E |