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:
00285802
Vues:
13
>What's the easiest way to put a "save to database" button and a "cancel" button on a form?
>
>JD

As far as the buttons go, it's very easy, just drop them on your form or wherever, and place the appropriate code behind them in the click event. Don't forget to set an appropriate caption for them. 8') You might also want to set the Default property to true for the save button, and the Cancel property to true for the cancel button.

As for the code, that is up to you. It really depends on whether or not you are using views. IOW, it depends on your implementation as to how you do the save and cancel. For example: If you are using views, I would be willing to bet that you would need to call TABLEUPDATE somewhere from the save button, and you would need to call TABLEREVERT somewhere from the cancel button.

If it were me, I would create a class for each of these buttons so that I could just drop them on the form.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform