Text.Left

From Xojo Documentation

Method

Text.Left(count As Integer) As Text

Supported for all project types and targets.

Returns the first count characters of the Text value.


Exceptions

Sample Code

Get the 5 left-most characters of the text:

Dim t As Text = "Hello, World!"
Dim hello As Text = t.Left(5) ' hello = "Hello"