FmtStr¶
Format a string with given arguments.
Declaration¶
Source position: sysstrh.inc line 176
procedure FmtStr(var Res: string; const Fmt: string;
const args: Array of const);
procedure FmtStr(var Res: string; const Fmt: string;
const args: Array of const;
const FormatSettings: TFormatSettings);
Errors¶
In case of error, a EConvertError exception is raised.
See also¶
| Name | Description |
|---|---|
| Format | Format a string with given arguments. |
| FormatBuf | Format a string with given arguments and store the result in a buffer. |
| EConvertError | Conversion error. |
Example¶
Program Example70;
{ This program demonstrates the FmtStr function }
Uses sysutils;
Var S : AnsiString;
Begin
S:='';
FmtStr (S,'For some nice examples of fomatting see %s.',['Format']);
Writeln (S);
End.