Przejdź do głównej zawartości

StringFormat

Replaces the format item or items in a specified string with the string representation of the corresponding object.

StringFormat("format", d"object");
  • format – (String) A composite format string.
  • object – (String) The object to format.

This function returns String. A copy of format in which the format item or items have been replaced by the string representation of object.

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");