TextEdit.DataSource

From Xojo Documentation

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

Property (As String )
aTextEdit.DataSource = newStringValue
or
StringValue = aTextEdit.DataSource

Supported for all project types and targets.

The DataControl that references a table in a database whose fields are displayed using the control (TableName as String).

Notes

If assigned in code, you use the Name property of a DataControl. Use the DataField property to link each field to be displayed to a control. In the IDE, a popup menu of field names will appear.

Example

Use the DataField property to link the field to be displayed to the TextField or TextArea. In the IDE, a popup menu of field names will appear. When set in code, it takes a String, e.g.,

Me.DataSource = "DataControl1"