Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going to a RecNo() that is no longer valid
Message
 
À
03/09/2008 07:58:53
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344176
Message ID:
01344443
Vues:
12
Hi Jay,

>I've never used LOCATE that way. Why not use GOTO? Is it the same?

LOCATE RECORD and GOTO are nearly identical. The difference between the two is that if you pass RECCOUNT()+1 to GOTO, you get an error message, but LOCATE RECORD accepts this value and moves the record pointer into EOF. In other words, LOCATE RECORD accepts everything that RECNO() returns. GOTO only accepts existing records making it necessary to check for EOF() separately.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform