RAD Studio VCL Reference
|
Returns a formatted Unicode string assembled from a format string and an array of arguments.
function WideFormat(const Format: WideString; const Args: array of const): WideString; overload; function WideFormat(const Format: WideString; const Args: array of const; const FormatSettings: TFormatSettings): WideString; overload;
BSTR WideFormat(const BSTR Format, const array of const Args); BSTR WideFormat(const BSTR Format, const array of const Args, const TFormatSettings FormatSettings);
This function formats the series of arguments in the open array Args. Formatting is controlled by the format string Format; the results are returned in the function result as a Unicode string.
For information on the format strings, see Format Strings.
The first form of WideFormat is not thread-safe, because it uses localization information contained in global variables. The second form of WideFormat, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of WideFormat, 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!
|