PopupMenu.DataField

From Xojo Documentation

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

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

Supported for all project types and targets.

The name of a Field in the table referenced by the DataSource property.

Notes

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

Example

The following specifies the DataSource and DataField for the control. You can also set these properties in the Properties pane

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