tostring( value )
Converts a value to Text. If an array is passed in, its values will be concatenated to form one string. To preserve the original array structure, use touniformstring()
.
See also: touniformstring()
Keyword | Type | Description |
---|---|---|
|
Any Type |
Value to convert. |
Text
Arguments after the first are ignored.
Values that hold a Number (Decimal) data type are displayed using 7 digits of precision, when cast to a string of plain text.
This function returns a null Text when passed a null value.
Do not use apply
with tostring
; use touniformstring() instead.
1
tostring(17)
Returns "17"
.
1
tostring({1,2,3.1})
Returns "1; 2; 3.1"
.
1
tostring({1, 2, "a", null, "b", "", "c"})
Returns "1; 2; a; ; b; ; c"
.
1
tostring({"a", {}, "b", "c"})
Returns "a; b; c"
.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
tostring() Function