It does not permanently overload foxpro settings with windows settings. Eg after SET SYSFORMATS ON you can SET POINT TO ".", even if the system setting is "," and the point setting then will differ from the system setting again, even though SYSFORMATS still is ON.
That maybe unexpected design of the setting also continues, in that SET SYSFORMATS OFF has no meaning, it does not revert settings. Eg I have SET("POINT") as "." by default. Due to german windows settings SET SYSFORMAT ON sets this as "," and SET SYSFORMATS OFF does not revert that. Restarting FoxPro does.
Directly after SET SYSFORMATS ON you can be sure windows settings are taken over into foxpro settings (of course as far as there are similar foxpro settings). Don't check SET("SYSFORMATS") to be "ON" and then rely you read out system settings, that depends on the settings not being overridden again.
Olaf, yes, I agree. That's why I said it will "ensure that your VFP session respects the user's Windows settings". Note the stress on "session".
Filip, all this also brings up the question: why do you need to determine the separator character. If you want your application to respect the Windows setting for the seperator, just set SYSFORMATS on, and continue to format your number strings as before (with the caveats that Olaf mentioned).
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.