RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.WideFmtStr Function

Assembles a formatted Unicode string using a format string and an array of arguments.

Pascal
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 FormatSettings: TFormatSettings); overload;
C++
WideFmtStr(BSTR Result, const BSTR Format, const array of const Args);
WideFmtStr(BSTR Result, const BSTR Format, const array of const Args, const TFormatSettings FormatSettings);

SysUtils

This function formats the series of arguments in the open array Args into a Unicode string. Formatting is controlled by the format string Format; the results are returned in the parameter Result.  

For information on the format strings, see Format Strings. 

The first form of WideFmtStr is not thread-safe, because it uses localization information contained in global variables. The second form of WideFmtStr, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of WideFmtStr, you must populate FormatSettings with localization information. To populate FormatSettings with a set of default locale values, call GetLocaleFormatSettings

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!