ToString()
Converts a value to a string.
ToString( value=any, encoding=string );
Returns: String
| Argument | Description |
|---|---|
|
value
any,
optional
|
edit
Value to convert to a string; can be a simple value such as an integer, a binary object, an XML document object, or a Java InputStream. |
|
encoding
string,
optional
|
edit
The character encoding (character set) of the string. |
Examples
editFunction 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
- Strings
- Int()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)