See Also: String Functions, Type Conversion Functions, Date, Integer, Number, Real, Round, String
String returns data of type String regardless of the type of the source value.
(String( {expression} ))
String returns the value of {expression} as a string.
Procedure Test
number nNum
string sFormatted
Move -45 to nNum
Move ("$" + String(nNum) + ".00") to sFormatted
End_Procedure
In this example, the string "$-45.00" is moved to the string variable sFormatted.
It is not always necessary to convert numbers, dates, and other types to string in order to perform string manipulations on their values. Many string manipulations can be performed more straightforwardly without conversion.