[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Format a string with given arguments.
Source position: sysstrh.inc line 121
procedure FmtStr( |
var Res: String; |
const Fmt: String; |
const args: array [] of <NIL> |
); |
FmtStrcalls Formatwith Fmtand Argsas arguments, and stores the result in Res. For more information on how the resulting string is composed, see Format.
In case of error, a EConvertErrorexception is raised.
|
Format a string with given arguments. |
|
|
Format a string with given arguments and store the result in a buffer. |
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.