Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current Datasession settings
Message
De
18/04/2000 10:49:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00360780
Message ID:
00360845
Vues:
13
>>>>Which method is the best to write the settings for each datasession?
>>>>Activate,Init,Load...?
>>>>Thanks.
>>>
>>>Load. This is the only form method that fires early enough. ANd if you want them to be set before the tables open, you will have to set DataEnvironment.AutoOpenTables = .F., and change your settings, and call OpenTables() yourself.
>>Thanks Erik.
>
>Just as an add-on, you could put the settings in the Dataenvironment.BeforeOpenTables and leave AutoOpenTables set to .T.. This event fires before the form's Load event.

Yup. But unless you use a subclassed DE defined in a prg (ala CodeBook), you would have to cut and paste this code into every form.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform