getDataSource Method

See Also            Applies To

Returns the Recordset object that is used to bind data.

Syntax

object.getDataSource()

Parameters

object

A script object.

Remarks

To specify the field by which the Recordset object is bound, use the setDataField and getDataField methods.

When using design-time controls, the Recordset object is specified by the Recordset property.

Example

In the following line, getDataSource returns the Recordset object that is bound to a Listbox object and passes it to the variable objRS.

objRS = Listbox1.getDataSource();