[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Format a string with given arguments, but with limited length.
Source position: sysstrh.inc line 120
function StrLFmt( |
Buffer: PCHar; |
Maxlen: Cardinal; |
Fmt: PChar; |
const args: array [] of <NIL> |
):Pchar; |
StrLFmtwill format fmtwith Args, as the Formatfunction does, and it will store maximally Maxlen charactersof the result in Buffer. The function returns Buffer. Buffershould point to enough space to contain MaxLencharacters.
for a list of errors, see Format.
|
Format a string with given arguments, store the result in a buffer. |
|
|
Format a string with given arguments. |
|
|
Format a string with given arguments. |
|
|
Format a string with given arguments and store the result in a buffer. |
Program Example80; { This program demonstrates the StrFmt function } Uses sysutils; Var S : AnsiString; Begin SetLEngth(S,80); Writeln (StrLFmt (@S[1],80,'For some nice examples of fomatting see %s.',['Format'])); End.