RAD Studio VCL Reference
|
Formats a System::Currency object.
function FormatCurr(const Format: string; Value: Currency): string; overload; function FormatCurr(const Format: string; Value: Currency; const FormatSettings: TFormatSettings): string; overload;
AnsiString FormatCurr(const AnsiString Format, Currency Value); AnsiString FormatCurr(const AnsiString Format, Currency Value, const TFormatSettings FormatSettings);
FormatCurr formats the System::Currency object given by Value using the format string given by Format.
For information on the format strings, see FormatFloat Strings.
The first form of FormatCurr is not thread-safe, because it uses localization information contained in global variables. The second form of FormatCurr, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of FormatCurr, you must populate FormatSettings with localization information. To populate FormatSettings with a set of default locale values, call GetLocaleFormatSettings.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|