Today I faced very weird case in debugger while debugging someones code(customized code, not MS's).
below is piece of code
when I apply filters on table according to code I am getting 3 records
but when I debug it, debugger is getting only 2 records.
Because of that system throwing below error.
Where and what I am missing ?
I tried only : CLEAR(JobPlanningLine); which did not work.
This code is in Job Planning Line.
Thanks in advance.
I think this code needs 2 clarification:
- Are JobPlanningLIne Global variable and Lineno local?
- if we have 0 records after filters the LIneNo will have 0 value (if it is local and something if it is Global)
FYI - please, check what the command CLEAR do :)
Thanks RedFoxUA for reply.
Both variables are local.
ok. Set break-point on line 686 and check what value LineNo has + show the place of the error when you receive the message
Have you checked whether the record variable is filtered before on somewhere else
Thanks for all replies.
I have resolved this by using SETCURRENTKEY..