Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data environment has its own settings
Message
De
16/07/1998 16:02:33
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
16/07/1998 12:46:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00118159
Message ID:
00118304
Vues:
31
>Let me re-formulate my question and post my solutions so far, since I've learned a bit since I originally posted it:
>
>Question:
>How do I force all my private data sessions to share a common set of settings (ANSI, ...)?
>
>
>Answer:
>The best way that I know of so far is to put a call in the base form's Load method. The disadvantage seems to be that if I do not have NODATAONLOAD set, then the data I pull for a view might not be what I'm expecting.
>
>What I'd like to do is to subclass the DE, override the BeforeOpenTables event and put the code in there.
>
>Bob

Another way is to have two environment type objects. One object is global and has the settings for all the VFP set commands. The other would be scoped to your form and part of your form base class. When this object instantiated it would gather the private settings (the subset that is affected by a private data session) from the global class and reissue the set statements. The form object uses the global object to determine values, or it can have the global values overriden.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform