(Formerly known as global function StrFormat, which is now obsolete)
static String.Format(string fmt, ...)
Processes the string FMT in the same way as the Display function does but
instead of displaying it on the screen, returns the result as a new string.
You can insert the value of variables into the message. For more information,
see the string formatting section.
NOTE: This function is static, which means you do not call it on
an existing string variable, but use String.Format() instead.
Example:
int health=10;
String text = String.Format("%d", health);
will create a text string containing "10".
See Also: Display
|