Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set talk off in the wrong place
Message
 
À
25/03/1998 10:39:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00086895
Message ID:
00087015
Vues:
40
>>I have a base Form class that I use for most of my forms wich has in the load method the following code:
>>Set deleted on
>>Set exact on
>>Set talk off
>>
>>When I use a form with a Private DataSession and have some code executing in the OpenTables method of the Environment Object of the form The executing results show in the screen since the load method has'n been executed yet. Is there another place to put the Set Talk Off command that can be subclassed since the Environment object of the form can't?
>
>I generally set it either in the config.fpw or the top-most calling program. That way, I can run the form separately in a test mode and have my default settings for ease of operation, but I don't have to worry about remembering to put things like "SET TALK OFF" back into the form.

However, SET TALK is scoped to the current data session. So, when using private data sessions, SET TALK must be set in each forms DE. I prefer in the .BeforeOpenTables method.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform