System.SysUtils.FormatCurr

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils


説明

Currency オブジェクトを整形します。

FormatCurr は、Value で指定された Currency オブジェクトを、Format で指定された書式文字列で整形します。

書式文字列の情報については、FormatFloat 文字列を参照してください。

FormatCurr の第 1 の形式は、グローバル変数に含まれているローカライズ情報を使用するため、スレッド セーフではありません。 FormatCurr の第 2 の形式は、AFormatSettings パラメータに含まれているローカライズ情報を参照し、スレッド セーフです。 FormatCurr のスレッド セーフ形式を呼び出す前に、AFormatSettings にローカライズ情報を入れる必要があります。 AFormatSettings にデフォルトのローカル値セットを入れるには、TFormatSettings.Create を呼び出します。

関連項目