Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a new method to a form
Message
 
À
12/02/1997 22:19:19
Alhad Marathe
Asm Consulting
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00020302
Message ID:
00020990
Vues:
44
>If I have a form set and want to add a new method to a form in the form set, the method is added to the formset and not to the form.
>
>Any suggestions ?
>
>Also is there a way of knowing which tables are in the dataenvironment of a particular form at runtime? I am using the default data session. I am trying to create a class for a generic closebutton which will use tablerevert function on all tables in a form when a form is released
>
>Thanks in advance
>
>Alhad

You might try building a transaction class that will handle your table reverts. I built such an animal to do OLTP. Each form performs the
.AddObject("oTrans","dbtransaction") which adds it to the form. One of the properties is an array of all the aliases that the form is responsible for. Various buttons based on user actions dictate whether it tries to
to a table update or a revert. It also has it's own error handler which can trap those unique to updating a table. When the form is released, the revert method is fired by the THISFORM.oTrans.RevertDB() method making sure that all aliases are reverted.

Steve Despres
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform