Share via


UseDeDataSource Property

Determines whether to use the data source of the data environment container as the data source for the CursorAdapter object. The data source of the associated data environment is specified by the DataEnvironmentDataSource property. Read/write at design time and run time.

Note   UseDeDataSource applies only when the cursor adapter exists in the data environment.

CursorAdapter.UseDeDataSource [ = lValue ]

Property Values

  • lValue
    Logical data type. The following table lists the settings for lValue.
    lValue Description
    True (.T.) Use the data source of the associated data environment as the cursor adapter data source.

    Setting UseDeDataSource to True (.T.) is not appropriate if the data environment contains multiple CursorAdapter objects using ActiveX Data Object (ADO) data sources. Multiple cursor adapters cannot share a single ADO RecordSet. You should set each cursor adapter's DataSource and DataSourceType properties individually.

    If the cursor adapter is a member of the data environment, the DataEnvironmentDataSource and DataSourceType properties override the relevant CursorAdapter properties.

    False (.F.) Do not use the data source of the associated data environment as the cursor adapter data source.

See Also

Properties | CursorAdapter Object Properties, Methods, and Events | DataEnvironment Object Properties, Methods, and Events

Applies To: CursorAdapter Class