Binding Object VB


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 vbComplex-Bound. 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 BindingCol-lection object for more detail about data binding and an example demonstrating the use of the Binding object.

Createable Yes



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

Binding Object (VB6) 139

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.


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.


Data Type: StdDataFormat

A stdDataFormat object that specifies the type of formatting to apply to the data.

Data Type: String

An optional key to quickly reference an individual binding object from within the collection.


Data Type: Object

The data consumer object, either a form, a control, or a VB class with its DataBindingBehavior property set to vbSimpleBound or vbComplex-Bound.


Data Type: String

The name of the property in the data consumer object that is assigned the value from the DataField property.

Was this article helpful?

0 0

Post a comment