Advantage Concepts
Advantage Expression Engine function that removes leading spaces from a character string
LTRIM(<cString>) à cTrimString
<cString> The character string to copy without leading spaces.
LTRIM() returns a copy of <cString> with the leading spaces removed. If <cString> is a null string ("") or all spaces, LTRIM() returns a null ("").
LTRIM() is a character function that formats character strings with leading spaces. These can be, for example, numbers converted to character strings using STR().
LTRIM() is related to RTRIM(), which removes trailing spaces, and ALLTRIM(), which removes both leading and trailing spaces. The inverse of ALLTRIM(), LTRIM(), and RTRIM() are the PADC(), PADR(), and PADL() functions which center, right-justify, or left-justify character strings by padding them with fill characters.
Note Do not use LTRIM, ALLTRIM, RTRIM, or TRIM to create a variable length index key. If you use a TRIM function, also use a PAD function to make the key length a fixed length. For example: PADR(LTRIM(charfield),10).
Note The LTRIM() function treats carriage returns, line feeds, and tabs as space characters and removes these as well.
Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.
Note Memo, binary, and image fields are not supported in this Advantage Expression Engine function. If memo, binary, or image fields are used with this expression engine function, the Advantage Expression Engine will be unable to evaluate the expression.