RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStringT::sprintf Method

Sets the value of the System::AnsiStringT given a format string and its arguments.

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

Use System::AnsiStringT::sprintf to set to the value of the System::AnsiStringT 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::AnsiStringT (*this) with the resulting value. 

 

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