Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global setting of SYSFORMATS to ON does not
Message
 
 
To
27/07/2009 12:03:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01414773
Message ID:
01414774
Views:
36
>Hi all,
>Is this the expected behavior of setting the SYSFORMATS when globally set to ON? Even using the CONFIG.FPW will still default SYSFORMATS to OFF. Outside of subclassing the Session class, is there a way to globally set SYSFORMATS to OFF ?
>
>set sysformats on
>oSession = createobject('clsSession')
>*--------------------------------
>define class clsSession as session 
>   procedure init
>      ? set("Sysformats") && OFF
>   endproc
>enddefine
>
The Help clearly states "SET SYSFORMATS is scoped to the current data session."

So, it means you need to add it in the Init method of your session based class and there is no way to make a global change.

However, you can create a simple small class that will set all the settings to the desired state and restore them in its Destroy. Then you would add this class to your other class as a member and set it to NULL in the Destroy method of your other class.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform