Compartir a través de


LTRIM( ) Function

Returns the specified character expression with leading blanks removed.

LTRIM(cExpression)

Return Values

Character

Parameters

  • cExpression
    Specifies the character expression whose leading blanks LTRIM( ) removes.

Remarks

This function is especially useful for removing the leading blanks that are inserted when you use STR( ) to convert a numeric value to a character string.

Example

STORE 'Redmond' TO gcCity
STORE '   Washington' TO gcState
CLEAR
? gcCity, gcState  && Displays Redmond   Washington
? gcCity, LTRIM(gcState)  && Displays Redmond Washington

See Also

ALLTRIM( ) | LEFT( ) | RIGHT( ) | RTRIM( ) | SUBSTR( ) | TRIM( )