GetErrorLineNR()

Syntax

Result = GetErrorLineNR()
Description
Get the line number where the error occurred, either in the main source file or in the includes. Use GetErrorModuleName() to determine in which file the error occurred.

This function is only available if the switch 'Enable OnError lines support' is checked in the compiler option window (Command line switch: /LINENUMBERING). If this switch isn't activated, this function will returns always -1.

Supported OS

Windows

<- GetErrorDescription() - OnError Index - GetErrorModuleName() ->