My code is now written as follows:
{$IFDEF VER220} FormatSettings := TFormatSettings.Create(GetThreadLocale); {$ELSE} GetLocaleFormatSettings(GetThreadLocale, FormatSettings); {$ENDIF}
You will probably want to configure IFDEF for the relevant future versions, but this gives an idea.
mj2008
source share