Text.Characters

From Xojo Documentation

Method

Text.Characters() As Xojo.Core.Iterable

Supported for all project types and targets.

Returns an iterator that yields a Text value for each character, in order of first to last.

Sample Code

Reverse the Text:

Dim t As Text = "Hello, World!"
Dim reverse As Text

For Each c As Text In t.Characters
reverse = c + reverse
Next

// reverse = "!dlroW ,olleH"