LTrim()

<< Click to Display Table of Contents >>

Navigation:  Available Functions >

LTrim()

Syntax

LTrim( <FieldName> )

 

Purpose

To return the characters of a field, less any leading blank spaces.

 

Parameters

<FieldName> is the name of a field, or any character expression.

 

Returns

A Character value.

 

Usage

LTrim() is a character function used to format character values by removing any leading spaces. These can be, for example, numbers converted to character values 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 values by padding them with fill characters.