ToString

Converts a value to a string.

ToString( [ value [, encoding ] ] )

Returns: String

Argument Description
value
any, optional

Value to convert to a string; can be a simple value such as an integer, a binary object, or an XML document object.

encoding
string, optional

The character encoding (character set) of the string.

Examples

writeDump(toString(45));
dt=now();
writeDump(toString(dt));

See also