LTRIM: Removing Leading Spaces

How to:

The LTRIM function removes leading spaces from a character string.


Top of page

x
Syntax: How to Remove Leading Spaces
LTRIM(arg)

where:

arg

character string

Is the value to be trimmed.

This function returns a varying character string. The data type of the result has a length equal to that of the input argument (although the value may be shorter).



Example: Removing Leading Spaces

LTRIM removes leading spaces. This example,

LTRIM('   ABC   ')

returns 'ABC   '.


iWay Software