Text.TitleCase

From Xojo Documentation

Method

Text.TitleCase(Optional locale As Xojo.Core.Locale = Nil) As Text

Supported for all project types and targets.

Returns a new text value that has its characters titlecased. If the locale parameter is non-Nil, it will use that locale’s rules when performing the operation.

Sample Code

Convert text to "Hello, World!":

Dim t As Text = "hello, world!"
t = t.TitleCase ' t = "Hello, World!"