>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")
> 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