Printf
The global Printf function writes formatted text in the default Script Messages window. This method provides functionality like the printf function in the C language. This function creates the Script Messages window if it does not already exist.
bOK = Printf( sFmt, ... ) |
Printf takes 1 or more arguments. The first argument is a string that may be either the value to print or a format to be used for interpreting any additional arguments. Additional arguments provide values for the % fields embedded in the format string. The syntax of this function is compatible with the printf function in C; for details about specifying the format string, refer to documentation for printf in the C or C++ language.
The script fragment below writes formatted text to the Script Messages window using the Printf method:
|
-- values to print |
|
-- do a formatted print |