RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::printf Method

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

Pascal
function printf(const format: char*; : ...): Integer; cdecl;
C++
__cdecl int printf(const char* format, ...);

Use System::AnsiString::printf to set 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 the length of the final formatted string. 

 

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