RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::sprintf Method

Sets value of System::UnicodeString, given format string and its arguments.

Pascal
function sprintf(const format: wchar_t*; : ...): UnicodeString&; cdecl;
C++
__cdecl UnicodeString& sprintf(const wchar_t* format, ...);

Use System::UnicodeString::sprintf to set to the value of the System::UnicodeString instance, given a standard C++ format specifier. Pass the values to any arguments in the format specifier as additional parameters following the format parameter.  

This method returns a reference to the System::UnicodeString instance (*this) with the resulting value. 

 

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