Hello,
I try to read the variable $ERR (a struct) in my KRC 4 system. According to a manual, it shall include the information of what line number I am in the program.
I can read the variable using the "display variable" window, and it has data on "LINE_NR", but it says "LINE_NR 0" no matter where I am in my current program.
Is there something I have misunderstood or forgot in using this variable/struct? Have anyone else used $ERR to read the current line number in the program?
Is there any other way to see the line number?
What I am trying to solve is this:
I am running my Main() program. Somewhere in Main() I will go into Search() where a error-loop can occur, waiting for user to accept error and cancel program. It will be vital information for the user at this point to know what Line Number the program was at in Main() before this happened. If you have any tips how to find this information, please share! Maybe there is a much easier way I am not seeing.
Thanks for all replies.