StringFormat
Replaces the format item or items in a specified string with the string representation of the corresponding object.
Syntax
StringFormat("format", d"object");
Function arguments
- format – (String) A composite format string.
- object – (String) The object to format.
Return value
This function returns String.
A copy of format in which the format item or items have been replaced by the string representation of object.
Examples
Example 1:
'result’ variable value will be „xyz”.
result = StringFormat("x{0}z", "y");
Example 2:
'result’ variable value will be xyz qwe.
result = StringFormat("x{0} {1}we", "yz", "q");