StrLFmt¶
Format a string with given arguments, but with limited length.
Declaration¶
Source position: sysstrh.inc line 174
function StrLFmt(Buffer: PChar; Maxlen: Cardinal; Fmt: PChar;
const args: Array of const) : PChar;
function StrLFmt(Buffer: PChar; Maxlen: Cardinal; Fmt: PChar;
const args: Array of const;
const FormatSettings: TFormatSettings) : PChar;
See also¶
| Name | Description |
|---|---|
| StrFmt | Format a string with given arguments, store the result in a buffer. |
| FmtStr | Format a string with given arguments. |
| Format | Format a string with given arguments. |
| FormatBuf | Format a string with given arguments and store the result in a buffer. |
Example¶
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.