Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A class or a prg to save and restore all environment set
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00620085
Message ID:
00620447
Vues:
22
OK I got it.

Thanks.

>Hello Doron.
>
>I posted a FQ entry on retrieving the entire set of operating system
>environment variables; it has nothing to do with the VFP environment. I'd
>suggest looking at KiloFox by Akins, Kramek and Schummer - they have
>template code that demonstrates writing this sort of thing.

>
>And he is absolutely right. Chater 1 - section 6:
>
>Creating an environment setting class
>
>We think that the best method of setting up your own environment in a Private DataSession is to use a class. By placing all of the necessary SET commands in a method which is called by the Init method of the class, merely instantiating an object based on this class will set things up the way you want them. The code to do this can then be placed in the Load method of your form class so that every time the form is instantiated, the correct settings are applied. The only limitation of this methodology is that, as noted above, you cannot allow the DataEnvironment to automatically handle the opening of tables. The following code shows how such a class may be defined programmatically (although there is no reason why such a class should not be created in the visual class designer):
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform