The ToString()
function converts a value to text.
Syntax
ToString(value)
ToString(value, format)
Returns
A text representation of value
. If value
is unknown an empty text is returned.
Parameters
value
– a value of any type.format
– (optional) a text with the format to whichvalue
must be converted. This parameter only applies when converting adatetime
,duration
ornumber
.
Note: this function uses the language setting of a portal when converting a value.
Examples
ToString("Bard") /* "Bard" */
ToString(true) /* "Yes" */
ToString(false) /* "No" */
ToString(1054.32179, "#,000.000") /* "1,054.322" */
ToString('Color'.'Orange') /* "Orange */
ToString([File]) /* (The name of the file) */
ToString(UnknownNumber) /* "" */