ListBox.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)

Property (As String )
aListBox.DataField = newStringValue
or
StringValue = aListBox.DataField

Supported for all project types and targets.

Name of a field in the database table referenced by DataControl.

Notes

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

Example

This example specifies the field for the ListBox.

Me.DataField = "FirstName"