From Xojo Documentation

Revision as of 19:55, 29 August 2018 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Text.Codepoints() As Xojo.Core.Iterable

Supported for all project types and targets.

Returns an iterator that returns UInt32 values for each Unicode scalar value that comprises the text.

Sample Code

Look for Unicode 65:

Dim myText As Text = "Once Upon A Time"
For Each codePoint As UInt32 In myText.Codepoints
If codePoint = 65 Then
// It is "A"
End If