Lexical Error (LEX0008): Invalid LINE pragma.
In a textual worksheet (ST code or data type worksheet), the lexical analysis detected an invalid LINE pragma declaration. Using LINE pragmas, for example line numbers can be mapped between different editors or worksheet types or other document types can be referenced. This is helpful if, for example, a variables worksheet is imported from or exported to another editor or system and a correlation is needed between the two worksheet types.
Examples:
- { LINE('file:///C:/temp/MyCodeWorksheet.st') } (* reference to another document *)
- { LINE(12) } (* the following line corresponds to line 12 in the original document *)
-
{ LINE('file:///C:/temp/MyCodeWorksheet.st', 12)
(* the following line corresponds to line 12 in the document C:\temp\MyCodeWorksheet.cs *)
Further Info
For information on variables and how to declare them refer to the topic "Declare Variables/FB Instances" |
Remedy
- Double-click the error message to jump to the affected editor position.
- Correct the LINE pragma.