Does anyone have a full list of all the sets that require redoing for a new data session?
>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only