From RAD Studio API Documentation
Jump to: navigation, search


function FormatCurr(const Format: string; Value: Currency): string;
function FormatCurr(const Format: string; Value: Currency;
const AFormatSettings: TFormatSettings): string;


extern DELPHI_PACKAGE System::UnicodeString __fastcall FormatCurr(const System::UnicodeString Format, System::Currency Value)/* overload */;


Type Visibility Source Unit Parent
function public
System.SysUtils System.SysUtils


Formats a Currency object.

FormatCurr formats the 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 AFormatSettings parameter. Before calling the thread-safe form of FormatCurr, you must populate AFormatSettings with localization information. To populate AFormatSettings with a set of default locale values, call TFormatSettings.Create.

See Also