Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record is out of range
Message
 
To
08/01/2009 05:50:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01370902
Message ID:
01372081
Views:
38
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
Map
View

Click here to load this message in the networking platform