I have a similar case as in this question.
procedure TForm2.FormCreate(Sender: TObject);
var
S: string;
C: Currency;
FormatSettings: TFormatSettings;
begin
S := '1.000.000,00';
FormatSettings := TFormatSettings.Create;
FormatSettings.ThousandSeparator := '.';
FormatSettings.DecimalSeparator := ',';
// raises an Exception which is "as designed" as per the documentation
C := StrToCurr(S, FormatSettings);
ShowMessage(FormatCurr(',0.00', C));
end;
To quote David:
So it is a mistake to pass a string containing a thousands separator to this function.
So then does Delphi have any built-in function that will parse currency strings that contain thousand separators?