Gerard,
as Fabio mentioned, all commands that use the scope RECORD and GO.
In opposite what I stated before GO (and RECORD n) can place the record pointer to any existing record, visible or not. So the error will occur if you place the record pointer outside the valid records. (NOTE: RECCOUNT() is not allways the highest record number available).
I have no idea about the grid problem Fabio mentioned.
Is there a chance that something changes the workarea? A function that is rarely used, or some event that is running? I do not see your VFP version, but Eventbinding can do a lot of fun.
Ooops, all those years without SCAN ENDSCAN? What app was without it?
Agnes
>Hi Agnes.. thanks for your reply.
>Just to clarify.. are you saying that the ONLY command that can give a Record Out Of Range error is a GOTO ??
>
>
>>I still do not understand your IF EOF() construct. What is wrong with SCAN ENDSCAN?
>This is historical. I have always used these (before Scan/Endscsan was available) and just never changed with the times
>
>Regards,
>Gerard
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]