Output_String as C = LEFT( Input_String as C, Number_Of_Characters as N)
A character string.
The number of characters to return. If Number_Of_Characters is positive, the function returns Number_Of_Characters of characters from the beginning of Input_String. If Number_Of_Characters is negative, the function returns LEN( Input_String ) - Number_Of_Characters from the beginning of Input_String.
LEFT() returns a character string containing the left-most Number_Of_Characters of the Input_String.
LEFT( Input_String, Number_Of_Characters) achieves the same result as SUBSTR(Input_String, 1, Number_Of_Characters).
Alpha Five Version 5 and Above
dim firstname as C
firstname = "Beverley"
? left(firstname, 2)
? left(firstname, -2)