Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form and Datasession problem
Message
De
31/03/2004 10:34:55
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
31/03/2004 09:50:05
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00891069
Message ID:
00891175
Vues:
25
Absolutely.

I think that perhaps I should also mention that I have an application object that is instantiated prior to the form being run. I use custom properties of that object to set form appearances (colors). The application object has SET TALK OFF in the Init() method. Might this object have anything to do with the issue?

Mike


>Is SET TALK OFF the first line in the form.load?
>
>>I thought of that before. I set a breakpoint on SET("TALK"), which showed "OFF", then run the form. The stuff immediately scrolls in the VFP SCREEN before SET("TALK") finally stops the code. When it stops, SET("TALK") still shows "OFF" in the debugger and it paused on a line in the form's load event that says SET TALK OFF.
>>
>>Go figure. This is too weird.
>>
>>Mike
>>
>>
>>>Hi Mike
>>>
>>>It may be getting turned on again. Set a breakpoint on SET("TALK").
>>>
>>>>Hi Mike,
>>>>
>>>>I have SET TALK OFF in the Load event of form class. I tried to put SET TALK OFF in the Load event of the form itself and neither makes a difference. I even put SET TALK OFF in the Init of the form's Dataenvironment and same thing happens. The information is always displayed, scrolling in the VFP SCREEN.
>>>>
>>>>I know it has to do with the form's dataenvironment since everything works fine if I change the latter from "Private" to "Default dataenvironment".
>>>>
>>>>Any other ideas?
>>>>
>>>>Regards,
>>>>
>>>>Mike
>>>>
>>>>>SET TALK is scoped to the datasession and defaults to ON. In your form superclass, you need to add a method that you use to establish your preferred defaults. Call that method from your form superclass's load event.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform