Method

LTrim


Warning

This item was deprecated in version 2019r2. Please use String.TrimLeft as a replacement.

Description

Returns the string passed with leading (left side) whitespaces removed.

Usage

result=LTrim(SourceString)

OR

Introduced 5.0 result=stringVariable.Ltrim

Part

Type

Description

result

String

SourceString with leading whitespaces removed.

SourceString

String

The source, a copy of which, to be returned with leading whitespaces removed.

stringVariable

String

Any variable of type String.

Notes

LTrim uses the list of unicode "whitespace" characters at http://www.unicode.org/Public/UNIDATA/PropList.txt.

Sample code

This example removes the whitespaces from the left side of the string passed

Var s As String
s = LTrim("  Hello World  ") ' Returns "Hello World  "
s = "  Hello World "
s = s.LTrim ' Returns "Hello World "

Compatibility

All project types on all supported operating systems.