Difference between revisions of "PopupMenu.DataSource"

From Xojo Documentation

m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
Line 1: Line 1:

Latest revision as of 19:09, 3 September 2020

Read-Only Property (As String )
StringValue = aPopupMenu.DataSource

Supported for all project types and targets.

The DataControl that references a table in a database whose fields are displayed.


Use the DataField property to link a field to be displayed in a PopupMenu. In the IDE, a popup menu of field names will appear. When setting in code, it takes a String. Assign it to the Name property of a DataControl. Note: Database fields can also be displayed via a DataControl using ComboBoxes, TextFields and TextAreas, ListBoxes, CheckBoxes, and StaticText controls.


The following specified the datasource and datafield for the control.

Me.DataSource = "Movies"
Me.DataField = "Title"