RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::Format Method

Formats string assembled from System::UnicodeString, format, and array arguments.

Pascal
function Format(const format: UnicodeString&; const args: TVarRec *; size: Integer): UnicodeString; static;
C++
static __fastcall UnicodeString Format(const UnicodeString& format, const TVarRec * args, int size);

Use System::UnicodeString::Format to obtain a System::UnicodeString object whose value is the result of applying an array of arguments (args) to a given standard C++ format specifier string (format). The last parameter (size) is the 1-based index of the last element in args (one less than the number of arguments). 

Note that System::UnicodeString::Format is a static method. The returned value is a newly allocated System::UnicodeString, even if the method is called with an existing System::UnicodeString instance. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!