System.SysUtils.WideFmtStr

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const); overload;
procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const; const AFormatSettings: TFormatSettings); overload;

C++

extern DELPHI_PACKAGE void __fastcall WideFmtStr(System::WideString &Result, const System::WideString Format, const System::TVarRec *Args, const int Args_High)/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Beschreibung

Erstellt einen formatierten Unicode-String mit Hilfe eines Format-Strings und einem Array von Argumenten.

WideFmtStr formatiert die Argumente in dem mit Args angegebenen offenen Array. Die Operation wird durch den Format-String Format gesteuert. Das Ergebnis wird als Unicode-String im Parameter Result zurückgegeben.

Weitere Informationen zu den verschiedenen Formatierungsmöglichkeiten finden Sie unter Format-Strings.

Die erste Form von WideFmtStr ist nicht Thread-sicher, da die landesspezifischen Informationen der globalen Variablen verwendet werden. Der Thread-sicheren zweiten Form werden die landesspezifischen Informationen im Parameter AFormatSettings übergeben. Bevor Sie diese Form von WideFmtStr aufrufen, müssen Sie die Informationen in den Parameter AFormatSettings schreiben. Die landesspezifischen Standardinformationen können AFormatSettings mit TFormatSettings.Create zugewiesen werden.

Siehe auch