Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET TALK for new datasession?
Message
From
30/11/2001 18:11:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/11/2001 17:17:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00588274
Message ID:
00588287
Views:
27
This message has been marked as a message which has helped to the initial question of the thread.
>Every time a form starts in a new datasession, VFP sets TALK ON. Is there a way to tell VFP to set TALK OFF with every datasession, or do I need issue SET TALK OFF in every form.Load?
>
>Tools | Options | View has both Command Results and System Messages unchecked and that's been Set as Default.

Unfortunately, each datasession comes up with defaults, and there's no easy way to set them in advance. What you can do is to have it all set the way you want it in the .load, but at the class level - do it in your form class and then you can forget about it.

If you have any code in .datasession.beforeopentables or .init, it will fire before form.load, so you better put a Set Talk Off there as well. Standard datasessions in forms can't be subclassed; you may instantiate (thisform.addobject) an object based on a class defined in code (i.e. prg-based, subclassed from Session or Datasession class) and even call it .datasession, but that's somewhat too long, i.e. more hassle. The benefit would be that you could instantiate your forms from classes, without ever needing to have .scx files, and have datasessions in them. I haven't tried this, just speculating.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform