Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET DELETED ON and SQL Select
Message
De
22/03/2010 16:32:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01456091
Message ID:
01456271
Vues:
41
>>>>>>But that wasn't what I meant. I don't think altering settings in a form's Load is a good idea, at least not without saving and resetting the old value. Doesn't really belong in a form method, either, more like the app level.
>>>>>
>>>>>Form's Load (or DE BeforeOpenTables) is the place to set data session specific settings. So, in our BaseForm class we have all the sets command (or it could be a separate class with all the settings, which you instantiate). This way it will restore the defaults when form is closed, though may be unnecessary for forms using private DS.
>>>>
>>>>What can I say? I don't agree. IMO those kind of settings are at the app level, not the form level. Both work, of course, it's just a question of style and approach.
>>>
>>>Mike,
>>>
>>>There are two kinds of settings: global settings and private DS settings. There is no way to set private form DS settings from the application object, since application object is instantiated in the default Data Session. Therefore all these settings are repeated in the Form's Load.
>>
>>
>>I think there is. You just switch ds temporarily in the app object, do the SETs and switch back to your datasession
>>
>
>I thought about it and discarded this idea, hence not even mentioned.


Been doing it for ages

Form's load calls app object
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform