RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiFormatBuf Function

Format argument list using format string.

Pascal
function AnsiFormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const): Cardinal; overload;
function AnsiFormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const; const FormatSettings: TFormatSettings): Cardinal; overload;
C++
unsigned AnsiFormatBuf( Buffer, unsigned BufLen, const  Format, unsigned FmtLen, const array of const Args);
unsigned AnsiFormatBuf( Buffer, unsigned BufLen, const  Format, unsigned FmtLen, const array of const Args, const TFormatSettings FormatSettings);

AnsiFormatBuf formats the argument list given by Args using the format string given by Format and FmtLen into the buffer given by Buffer and BufLen. The Format parameter is a reference to a buffer containing FmtLen characters, and the Buffer parameter is a reference to a buffer of BufLen characters. The returned value is the number of characters actually stored in Buffer. The returned value is always less than or equal to BufLen. For further details, see the description of the Format function. 

 

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