Category: Special function
This function converts value to text.
This is useful when you wish to validate the contents of a field or retrieve the text value of a field.
Argument | Type | Description |
---|---|---|
expression | Any | The value, result of an expression, or an error to be converted into a text value. |
Return value type: Text
astext( 'January' ) //Returns 'January ' astext( 125 ) //Returns '125' astext( 2 + 2 = 4 ) //Returns 'TRUE' astext( 2 + 2 = 5 ) //Returns 'FALSE' astext( 1 / 0 ) //Returns 'Error: Division by zero'