Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New GOTO trick?
Message
 
À
16/03/2002 01:27:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00631774
Message ID:
00633706
Vues:
21
Hi Dragan,

>Actually, you have to check for recno()=0 on empty tables

Are you sure? So far, that situation has always returned 1 for me.

>but that's all - no error.

Not quite. LOCATE RECORD accepts any value that RECNO() returns on the current table. If you pass a record number that doesn't exist either as a regular record or as a phantom record, it still errors. However, almost everytime I have to go to a certain record number, it is because I want to restore the record position that the cursor had when FoxPro entered a procedure or method. In this case, I can ensure that the record number is still valid providing that I haven't requeried the cursor. What I can't ensure is that I'm not on EOF.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform