Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to go to a new record?
Message
 
 
À
20/03/2011 20:56:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01504292
Message ID:
01504295
Vues:
47
>>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.
>
>That only works when buffering is turned on. Look up table buffering in Vfp help. Did you issue another cursorsetprop() or tableupdate() or tablerevert() since the record was added?

Thank you, Tc. I decide to change the approach and not to move away from the newly added record.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform