Converts an expression to the alpha data type and sets the length of the result.
|expression||Any value, or an expression that yields any value.|
|length||A number. Can be a constant, a variable, a parameter, a menu item, or a form field.|
Character string (alpha), length bytes long.
Use $toalpha to convert expression to the alpha data type in an area length bytes long. If length is negative, the result string is set to the maximum possible length. If length is zero, the result is the null string.
String comparisons involving this function are case-insensitive.
If expression is a number, the number is converted to character string form in an area length bytes long. If the given area is not large enough to hold the converted value, an error results.
Assume that LastName is “Smith “.
Evaluates to “Smi”.
Evaluates to “Smith “.
Evaluates to “50”.
Evaluates to ” 50″ (17 leading spaces).
Evaluates to ” 500″ (17 leading spaces).
Evaluates to ” 500″ (14 leading spaces).
list all Emps format $toalpha(FirstName,6), $toalpha(LastName,9)
Alters the width of values being output with a LIST command.