Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET TALK for new datasession?
Message
 
To
30/11/2001 18:11:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00588274
Message ID:
00588630
Views:
29
>>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.

In addition to SET TALK OFF, I think that you should use SET DELETED ON as well. Especially with local views because they will return deleted records with the deleted flag cleared and I can't think of any situation where you want that to happen.

Regards,
Frank Camp
Previous
Reply
Map
View

Click here to load this message in the networking platform