See Also: Err, Error Command
To identify the program command line on which an error was last triggered.
Integer
When a runtime error occurs, DataFlex moves the number of program line on which the error occurred to errline. By use of this value, you can provide error action in your program which varies according to where in the program it occurred.
if (errline = 23) Showln "Ignore this error"
This command would cause any error triggered on Line 23 of the program to be ignored.
You can use the errline number with move commands to trigger further messages and command sequences.
The value of errline may be compared to number of the line on which a label is located, so long as the label has been executed at least once. The name of the label must be in parentheses. This is useful in error routines which you supply yourself (see On error Command).
if (errline > C_OBJECT_SECTION) abort
In this example, execution would end if an error were generated on a line below the constant C_OBJECT_SECTION.
The line number in errline is the compiled command line number, not the line count in your source code. A printout of the compile time listing will enable you to identify line numbers in your program.