StringFormat
Replaces the format item or items in a specified string with the string representation of the corresponding object.
StringFormat("format", d"object");Function arguments
Dział zatytułowany „Function arguments”- format – (String) A composite format string.
- object – (String) The object to format.
Return value
Dział zatytułowany „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
Dział zatytułowany „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");