ToString()

Converts a value to a string.

ToString( value=any, encoding=string );

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

Function example

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

Member function example

number=randrange(1,10);
writeDump(number.toString());
dt=now();
writeDump(dt.toString());

See also