Skip to main content

ToString

The ToString function returns the parameters converted to a string.

Prototype

  ToString(Parameter)

Arguments


Parameter Date, String, Number, Boolean or Attribute By value

The parameter to be converted to a string. Argument can be a literal or the result of an expression or
a variable (Studio only), as an example:

If Parameter is an Attribute, a string literal not enclosed in single quotes, the attribute value will be
converted to string.

Returns

String

The Resulting String.

Exception

Undefined

Undefined is returned if Parameter is Undefined or cannot be converted.

Example

ToString($x)

This will return the value of the $x variable converted to string.


ToString(Density)

This will return the value of the Density attribute converted to string.