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");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.