Text.Length

From Xojo Documentation

Method

Text.Length() As Integer

Supported for all project types and targets.

Returns the number of characters in the text.

Sample Code

Get the length of some text:

Dim t As Text = "Hello, World!"
Dim length As Integer = t.Length ' length = 13