StaticText.DataField

From Xojo Documentation

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

Supported for all project types and targets.

The name of a field in the table referenced by DataControl.

Relevant only if the StaticText is used in conjunction with a DataControl to display the contents of fields in a database table.