Errline Global Variable

See Also: Err, Error Command

Purpose

To identify the program command line on which an error was last triggered.

Type

Integer

What It Does

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.

Notes

 

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.