Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set deleted changes from on to off ???
Message
 
À
30/12/2008 16:19:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01370255
Message ID:
01370300
Vues:
17
Denis,

SET DELETED is copsed to the dta session it is executed within. When you call a prg from your form the prg runs in the form;s data session. When you call a method of an object that exists the method code runs in the data session of that object (which may not be the same as the data session of your form). I handle these data session settings by using a class where in its Init it saves the current setting of all settings it will change and then makes the changes and in its destroy it resets all settings back to what it saved during its init. In my form class' load event I do a Thisform.oSettings = CreateObject("MySettingsClass") and in the form's destroy I do thisform.oSettings = NULL. Since the object created will always be living within the data session of the form it will alwasy affect the form's environment.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform