Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforeOpenTable default
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00105839
Message ID:
00105937
Vues:
34
>>>The load of my base form is where I set delete, exclusive etc.
>>>If I add a table to DE ( private data ) and then run form, if the first record is deleted it shows up. I go to BeforeOpenTables and set dele on and this is cured because it fires before load of form. Is there a way to set this as default for BeforeOpenTables ?
>>>
>>>Thanks!! CB
>>
>>I have a method in my base form called .SetEnvironment() which does what your load is doing. The only difference is that I make this call as the first statement in the .BeforeOpenTables event of the DE. That way I know the environment is set when it gets to opening the tables.
>>
>>Steve
>
>Yes good idea !! But do you have to go to each form that you use DE on and add .SetEnviroment() statement in .BeforeOpenTables or is there a way to define that as default for .BeforeOpenTables ?
>
>CB

The SetEnvironment() method is a good idea. In your base form class, you can create some properties such as FormSetDeleted, FormSetExact, etc. You can set these properties to .T. or .F. at design time. Then at run time, the SetEnvironment method can read these properties and do its thing.

John
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform