Navigation:  MCL Reference > String Functions >

LTrim( )

Print this Topic Previous pageReturn to chapter overviewNext page

A Visual FoxPro built-in function which removes all leading spaces or parsing characters from the specified character expression.

 

Syntax

LTrim(cExpression, nFlags, cParseChar, cParseChar2, ...)

 

Argument

cExpression

Specifies an expression of character to remove all trailing spaces.

nFlags

Specifies if trimming is case-sensitive when one or more parse characters (cParseChar, cParseChar2, … are included. Trimming is case-sensitive if nFlags is zero or is omitted. Trimming is case-insensitive if nFlags 1.

cParseChar, cParseChar2, ...

Specifies one or more character strings that are trimmed from the end of cExpression. If cParseChar isn't included, then trailing spaces. The maximum number of strings permitted in cParseChar is 23.

 

Returns

Character

 

Examples

LTrim('  ABC/..')

Returns 'ABC/..'

 

LTrim('  ../ABC',[ ],[.],[/])

Returns 'ABC'

 

 


Page url: http://www.racematenet.com/english/help/index.html?ltrim.htm