String.TrimLeft
From Xojo Documentation
Method
Returns the string passed with leading (left side) whitespaces removed.
Syntax
result=stringVariable.TrimLeft
Part | Type | Description |
---|---|---|
result | String | SourceString with leading whitespaces removed. |
stringVariable | String | Any variable of type String. |
Notes
TrimLeft 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
Var source As String = " Hello World "
Var result As String
result = source.TrimLeft // Returns "Hello World "
Var result As String
result = source.TrimLeft // Returns "Hello World "
See Also
String.Trim, String.TrimRight functions and String type.