StaticText.DataSource

From Xojo Documentation

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

Supported for all project types and targets.

The table in a database whose fields are displayed (TableName as String).

If assigned in code, you use the Name property of a DataControl. Use the DataField property to link a field to be displayed to a StaticText. In the IDE, a popup menu of field names will appear. Database fields can also be displayed using TextFields and TextAreas, PopupMenus, and ListBoxes.