Link to home
Start Free TrialLog in
Avatar of Frits2
Frits2

asked on

Deprecated Global Variables Removed; Use FormatSettings Instead

Upgraded to Delphi XE3, now I get an E2003 undeclared indentifier error.
The DecimalSeparator and others has been deprecated in XE3 and now I must use FormatSettings Instead to work around this deprecation. but I don't know how to do this.
Could an expert show me an code example how to work around this error
Thanks Frits2
ASKER CERTIFIED SOLUTION
Avatar of TommySzalapski
TommySzalapski
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frits2
Frits2

ASKER

Thanks for your answer Tommy.
I did get to the http://docwiki.embarcadero.com/RADStudio/XE3/en/Global_Variables already,
but still don't know what to do with it.
do I have to change the code of my program, or do I have to change the SysUtils.pas to make the decimalseparator work again.
thanks Frits2
Yes. You will need to change your program. The variable you used has been removed (no longer exists). So you need to use the new one instead.

The only way to avoid changing your code would be to hack in some sort of macro or revert back to using the old version of XE3.
Avatar of Frits2

ASKER

The variable I use is the decimalseparator and is in the Spin.pas at line 486 (TSpinEdit) coming with Delphi XE3. the Spin.pas uses the SysUtils and there comes the DecimalSeparator  in the type  TFormatSettings = record at line 862 DecimalSeparator: Char;

There must be a workaround this Deprecated variable and that is what I am looking for not for changing my programs. the error E2003 is Not generated in my programs but in Spin.pas and SysUtils.

hope somebody can send me the wordkaround
thanks
Can you upgrade Spin.pas and SysUtils?
Avatar of Frits2

ASKER

Hi Tommy
Spin.pas and SysUtils are the origimal files from Delphi XE3
I do have contact with Embarcadero about this and first they told me the E2003 erros is caused in my code but I don't use the decimalseparator at all So I guess this is a bug in the Delphi XE3 when I get a solution or upgrade files from Embarcadero I let you know.
Thanks for all your help