From Xojo Documentation

Revision as of 19:05, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As String )
aLabel.DataSource = newStringValue
StringValue = aLabel.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 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.

Me.DataSource = "Movies"
Me.DataField = "Director"