Setting up session defaults.  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, Setting up session defaults. Top

Hio all;

I would like to set default session settings (Like talk, excl, etc) in all my forms. I am not sure if I should do this in the init of my baseform class, or somewhere else

Thanks.


Visual FoxPro1  
 
 
AndyKr





PostPosted: Visual FoxPro General, Setting up session defaults. Top

The Init() is too late - you need this code in the LOAD() and the first command in the list should be

SET TALK OFF

But yes, your base form class is the place for it.



 
 
Aleniko





PostPosted: Visual FoxPro General, Setting up session defaults. Top

Thanks Andy;

Does this mean that I need to issue a dodefault() in my forms when I edit the load method



 
 
CetinBasoz





PostPosted: Visual FoxPro General, Setting up session defaults. Top

Yes if you edit the code. If your form(s) have dataenvironment then form.load might be too late either. Then code in dataenvironment.beforeopentables.