Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session Environment
Message
From
18/06/1998 18:56:04
Bob Lucas
The WordWare Agency
Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00109703
Message ID:
00109743
Views:
36
>Hi,
>
>I have a cBizObjMaintenanceForm and in Page 1 I have a BizObj and in page 2 I have many of them. Where is the correct place to change cSessionEnvironment.cDate for all the form ? And If I want to change this setting in all my application ?
>
>Regards,

It is most likely that you want to have one common date setting for the entire app and not just at the form level. You can do this by modifying the aapp.init method with the following code:

this.oEnvironment.osessionenvironment.cDate = "YMD"

or whatever your appropriate setting. This value will then be used by the cSessionEnvironment object when it gets instantiated. You have pointed out a problem with codebook. The cSessionEnvironment object should be member of the form and not the bizobj class.

As another aside, I think the global object should be a member of the capp class and not 'added' with addobject. This would allow setting the properties required for the global session object before it is created and in the designer.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform