StaticText.Text

From Xojo Documentation

Property (As String )
aStaticText.Text = newStringValue
or
StringValue = aStaticText.Text

Supported for all project types and targets.

The text displayed. Same as the Caption property.