Compartir a través de


DataSourceType Property

Specifies the data source type of the data source in the DataEnvironment or CursorAdapter DataSource property. The DataEnvironment or CursorAdapter DataSourceType property determines the value of the corresponding DataSource property. Read-only at design time and read/write at run time. There are two versions of the syntax.

DataEnvironment.DataSourceType [= cDataSourceType]

CursorAdapter.DataSourceType [= cDataSourceType]

Return Value

  • cDataSourceType
    Character data type. The cDataSourceType parameter specifies a character string describing the data source type of the data source used by the data environment or cursor adapter.

    The following table lists the values for cDataSourceType.

    DataSourceType

    DataSource

    "ADO"

    Reference to a valid ActiveX Data Object (ADO) RecordSet or Command object

    "ODBC"

    A valid Open Database Connectivity (ODBC) connection handle

    "Native", "XML", null (.NULL.), or empty string ("")

    Disregarded

Remarks

Applies To: CursorAdapter Class | DataEnvironment Object

You cannot use local and remote views as a "Native" source for CursorAdapter objects, but you can attach them using the CursorAttach method.

The DataEnvironment DataSourceType is not specified at design time when the data environment does not specify a data source.

See Also

Reference

DataEnvironment Object Properties, Methods, and Events

CursorAdapter Object Properties, Methods, and Events

DEClass Property

DataSource Property (Visual FoxPro)

CursorAttach Method

Other Resources

Properties (Visual FoxPro)