RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::sprintf Method

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

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

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

 

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