Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement