Subject RE: [IBO] How to programaticly protect regional options of number, currency format....
Author Vahan Yoghoudjian
You need to override them in your application, by overriding of course I
dont mean changing the current values in windows, but ignoring them and use
your own.

All those regional settings are declared as variables in the unit SysUtils.
You can give a look at them and override the ones you need

In your case, if you're not dealing with dates, you need to override only
the DecimalSeparator and ThousandSeparator, maybe CurrencyDecimals too.

Good luck

Vahan

-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On Behalf
Of coderefectory
Sent: Tuesday, March 07, 2006 2:52 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] How to programaticly protect regional options of number,
currency format....


How to programaticly protect regional options of number, currency
(format)...
My friend use my program.Yesterday he installed some other program and
then regional nuber (format) settings was changed.
After that my program chrashed every time when use StrToFloat().I
change regional settings manualy...but how to protect this in code?
Why StrToFloat() doesn't work in booth cases:

1) 1.222,22
2) 1,222.22





___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Yahoo! Groups Links