LTRIM                                                                     Function

LTRIM(string)

Description

LTRIM returns a string with all leading spaces removed. The required parameter, string, is any valid string expression.

Example

REM LTRIM Example

'LTRIM trims all leading spaces

DIM Spacey

Spacey = "-K"

PRINT "(" & Spacey & ")"

PRINT "(" & LTRIM(Spacey) & ")"

Output

(-K)

(K)

Related Items

RTRIM, TRIM