Binding Object (VB6)

Description

The binding object represents the binding of one property of one form control (or another data consumer) to a data source. The data consumer represented by the Binding object's Object property can be a form control—or the form itself, or a VB class with its DataBindingBehavior set to either vbSimpleBound or vbComplexBound. The data consumer's property that is updated by the data source is represented by the string assigned to the PropertyName property. The data source can be any valid data source, such as an ADO recordset or a VB class with its DataSouceBehavior property set to vbDataSource

For an overview of data binding objects, including the library reference needed to access the object model, see the Data Binding Objects entry. See the BindingCollection object for more detail about data binding and an example demonstrating the use of the Binding object.

Createable

Yes

Properties

DataChanged

Data Type: Boolean

A True or False flag that indicates if the user has changed the data value. If the data value is the same as the recordset, the DataChanged property is False; if not, the value is True. Note that changing the property value by navigating through the recordset doesn't change the DataChanged property.

DataField

Data Type: String

The name of the field in the recordset held by the data source that is bound to the property in the data consumer control.

DataFormat

Data Type: StdDataFormat

A stdDataFormat object that specifies the type of formatting ...

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.