FmtStr procedure
Format a string with given arguments.
Declaration
procedure FmtStr(var Res: string; const Fmt: string;
const args: Array of const)Description
FmtStr calls
Format with
Fmt and
Args as arguments,
and stores the result in
Res. For more information on how the
resulting string is composed, see
Format.Errors
In case of error, a EConvertError exception is raised.
See also
Example: ex70
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.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
