Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record is out of range
Message
 
À
08/01/2009 05:50:22
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01370902
Message ID:
01372081
Vues:
40
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform