Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to go to a new record?
Message
De
20/03/2011 22:01:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01504292
Message ID:
01504300
Vues:
58
My data classes do that all the time. If you are getting -1 for record number then you are using buffering #5 and you should be able to goto -1. I just tried it here and it worked fine.

>Hi,
>
>Say I add (in code) a new record to a cursor. VFP assigns recno -1 to this record. Then I move record pointer to another record (say, Go Top). And when I want the record pointer to be moved back on the newly added record, what is the reliable method to do so? I tried to go to -1 but it moves to record no 1 (not negative 1). The PK value is not yet assigned to this new record so I cannot use it. Any suggestions? TIA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform