Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen Shows Verbiage
Message
De
15/03/2021 16:07:08
 
 
À
15/03/2021 16:00:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01678986
Message ID:
01679002
Vues:
43
Try to also add SET TALK OFF into DataEnvirnment if you have any code in it.



>Thanks for the input Naomi et al,
>
>I placed following code in the form Load events:
>
>SET CENTURY ON
>*SET CLASSLIB TO
>SET DELETED ON
>SET ESCAPE ON
>SET EXACT OFF
>SET EXCLUSIVE OFF
>SET MULTILOCKS ON
>SET PROCEDURE TO
>SET SAFETY OFF
>SET STATUS bar off
>SET CLOCK STATUS
>SET TALK OFF
>SET NOTIFY off
>
>The user login form has these settings in the Load eent of the login form. The login form also has a Registration button that pulls up another form (register form). It simply hides teh user login form, and brings up the registration form. When it pulls up the registration form, i notice the statements on the screen, "Selected xx records in 0.005 seconds etc".
>
>I was assuming that the Set Talk Off would have prevented that from showing.....
>
>
>>Thanks for the input. I have all my sets in a custom class (oPro.SetEnv). >Thanks. So I am using private datasessions in my forms data environment. So does that mean I need to Set Talk to Off in all Load events of my forms?
>>
>>That, and a bunch of other SETs, goes into a routine (in a .prg, not in an already existing object!*) which you'd call from the .load() of each form class which has private DS. And then you have it everywhere and forget about it, until someone asks a question like this :).
>>
>>The reason for the * there is that any object which already exists would execute its code in the DS in which it was created, so the settings it puts would apply to that datasession, not to your form's.
>
>Just add this setting into your custom class too.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform