Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Erl FunctionThis standard VB function returns the line number where an error was trapped. SyntaxReturnsThe line number on which an error occurred. UsageIf you use a Resume or On Error statement after Erl, the return value for Erl is reset to 0. To maintain the value of the line number returned by Erl, assign it to a variable. The value of the Erl function can be set indirectly through the Error statement. ExampleThis example prints the error number using the Err function and the line number using the Erl statement if an error occurs during an attempt to open a file. Siebel VB assigns line numbers, starting with 1, which is the Sub Button_Click See AlsoErr Function |
Siebel VB Language Reference |