Label.DataSource
From Xojo Documentation
This item was deprecated in version 2018r4. |
Property (As String )
aLabel.DataSource = newStringValue
or
StringValue = aLabel.DataSource
Supported for all project types and targets.
or
StringValue = aLabel.DataSource
Supported for all project types and targets.
The table in a database whose fields are displayed (TableName as String).
Notes
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 Label. In the IDE, a popup menu of field names will appear. Database fields can also be displayed using TextFields and TextAreas, PopupMenus, and ListBoxes.
Sample Code
This code sets the DataSource and DataField properties of the control.