Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I append a record using a view?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00050457
Message ID:
00050509
Vues:
22
>I'm using a view and I know how to go about editing a record:
>
>CURSORSETPROP("Buffering", 3)
>
>* Do whatever changes you want and then either
>
>TABLEUPDATE()
>
>* OR
>
>TABLEREVERT()
>
>Simple enough...
>
>But how do I buffer the addition of a new record?
>
>CURSORSETPROP("Buffering", 3)
>* followed by
>APPEND BLANK
>Gives me a new record, but the buffer has the values from the record I was on BEFORE the APPEND
>
>What do I do?
>
>Thanx,
>Joe Pirola

Joe, have you issued a ThisForm.Refresh() so the form reflects the values of the new record?

Check to see which record is active in the table - should be the appended record.

If your form values are wrong, then do a Refresh(). If the record pointer is wrong, step through the code from the append blank and find where the pointer moves.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform