Print

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");
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?