General information
Category:
Coding, syntax & commands
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
>Gerard,
>
>A Skip fails with Error 4 or 38 (End of file / Beginning of file encountered.)
>This is because Skip moves (skip?) from record to record and will run into EOF / BOF with respect to FILTER / ORDER / DELETED. There is no way to skip to record x if record x is unvisible because its deleted or filterd out.
>
>GO, on the other side, might try to point to a record thas exist, but is filterd out. You may point to a record number that is not in the cursor. (simplified: pos > reccount; note the problems of negative record numbers) this raises error 5.
>GO will set the record pointer record number n, without respect of the record order
>
>HTH
>
>BTW,
>I still do not understand your IF EOF() construct. What is wrong with SCAN ENDSCAN?
>
>Agnes
>
>>Hi Fabio
>>>CREATE CURSOR test (a i)
>>>GO 2
>>Yes. I understand this causes a Record Out Of Range
>>
>>But I cannot get a Skip to cause a Record Out of Range Error ??
>>
>>Regards,
>>Gerard
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only