Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie Form Buttons
Message
 
À
02/11/1999 17:28:50
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00285790
Message ID:
00285800
Vues:
17
Well, there isn't really and easy way. You need to buffer your tables. Which means, changes the user makes on the form are not written to the table but saved in memory, then the SAVE button issues a tableupdate() and the CANCEL issues a tablerevert().

Look here on the UT KB for article#442 "Data Buffering in Visual FoxPro". Click the purple book, then arictles, then visual foxpro in general. Read the article it will explain the principals behind buffering.

Also look at the VFP FFC classes that should have come with vfp. The is a datamanager class that you can use, but read the article first, so you understand what it is doing.

hth

>What's the easiest way to put a "save to database" button and a "cancel" button on a form?
>
>JD
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform