Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record is out of range
Message
From
08/01/2009 13:19:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01370902
Message ID:
01372131
Views:
36
>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 ??
>
Every direct record access:
CREATE CURSOR test( a i )
LOCATE RECORD 2
COUNT RECORD 2
GO 2
...
- index out of sync
- grid out of sync

someone known others ?

>
>>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
Reply
Map
View

Click here to load this message in the networking platform