str Format(str Format, ...)
Formats the string Format using the series of arguments that follow it. Formatting is controlled by the format string Format; the results are returned as a string. Each argument must be an integer or a string.
A compiler error will be raised if an invalid format string is specified, too few arguments are passed, or if any arguments are of the wrong type.
Note: unlike Pascal Scripting's Format function, arguments are passed directly instead of in an array.
#define AppName "My Program"
#define AppVersion "1.0"
#define OutputBaseFilename Format('%s-%s-setup', AppName, AppVersion)
// OutputBaseFilename = 'My Program-1.0-setup'
#define Count 10
#emit Format('%d files found', Count)
// emits '10 files found'