String
Mon 01 January 2018Syntax
String(value)
Description
Use the String function to convert any non-string data type (except an object data type) to a string.
Normally the Component Processor automatically handles data type conversions. However, for some operations, such as comparisons, you want to specify the data type explicitly. Assume, for example, that you have two fields FIELD_I and FIELD_J containing number values 5000 and 10000. As character fields, 10000 is less than 5000 (because the first character in 10000 is less than the first character in 5000). As numbers, however, 10000 is of course greater than 5000.
Note: Due to the internal representation of numbers, sometimes String represents numbers differently. If you want to control exactly how a number is represented, use the NumberToString function.
Parameters
Field or Control |
Definition |
---|---|
value |
A value of any data type other than an object data type, to be converted to its String representation. |
Returns
Returns a String value representing value .