From Xojo Documentation

Revision as of 15:17, 7 January 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Text.TrimLeft() As Text

Supported for all project types and targets.

Trims whitespace, as defined in the Unicode standard, from the beginning of the text. If the value is empty or consists entirely of whitespace, an empty Text is returned.

Sample Code

Removes beginning white space:

Dim t As Text = " Hello, World! "
t = t.TrimLeft ' t = "Hello, World! "