LTrim

From Xojo Documentation

Method

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

Syntax

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.

Examples

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

Dim s As String
s =LTrim(" Hello World ") // Returns "Hello World "
s =" Hello World "
s = s.LTrim // Returns "Hello World "

See Also

Asc, Chr, InStr, Left, Len, Mid, Right, RTrim, Trim functions.