It is a bit frustrating dealing with line numbers. Is there any way I can see the line number of the file being included and not the whole conglomeration?
For instance, my main routine has 300 lines, but I'm getting errors on line 600. It'd be more useful to know the line number of the included file really.
Thanks!
Line numbers, include files
Moderators: Dorian (MJT support), JRL
Re: Line numbers, include files
No.It is a bit frustrating dealing with line numbers. Is there any way I can see the line number of the file being included and not the whole conglomeration?
Try something like this:
Add a line just prior to the Include> line similar to below. You can then simply subtract the value of the "Macro1StartPos" variable from the line number in the error message.
Code: Select all
Let>Macro1StartPos={%_Line_Num%+1}
Include>%Script_dir%\Macro1.scp
Re: Line numbers, include files
Great suggestion! Thanks.