Scripting > Using preprocessor directives > #line
 
#line
The #line directive can be used to specify a starting line number and location that will then be used when reporting errors.
Syntax
#line sequence ["location"]
Parameters
sequence
An integer value that specifies the number of the next line.
location
A text value. If location is omitted, the previous location, if any, remains unchanged.
Example
The following example uses the #line directive to set the line number to 100 and the location to “MyScript”:
#line 100 "MyScript"
For an example of using the #line directive in a mrScriptBasic script, see IErrObject_Location (Err.Location) in the MDM Object Model Reference.
See also
Using preprocessor directives