Skip to content

String Function

See Also: String Functions, Type Conversion Functions, Date, Integer, Number, Real, Round, String

Purpose

The String function returns data of type String regardless of the type of the source value.

Return Type

String

Syntax

String( {expression} )

What It Does

The String function 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.

Notes

  • 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.