Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.

To string

Last modified: June 29, 2022

Basic functions to convert values of various data types to string.

toString

Converts the specified value to a string representation.

If you need full control over the output format, consider using the data type specific format functions. For example, for decimal, use formatDecimal.

Input Parameters

A value that should be converted to a String. Supported types: Integer/Long, Decimal, Float (deprecated), DateTime and Enumeration. In case of Enumeration, returns the key of the enumeration value, not the caption. See also Enumerations in expressions.

1
toString(1.4)

returns:

1
'1.4'

with a DateTime:

1
toString(dateTime(2007))

returns:

1
'Mon Jan 01 00:00:00 CET 2007'