IDalOleDbDrivers.Count

Syntax

Count: Integer;

Description

The Count property returns the number of OLE DB drivers installed in the system.

Example

Add links to the Dal, Db, and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    DBDriv: IDalOleDbDrivers;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    DBDriv := New DalOleDbDrivers.Create;
    For i := 0 To DBDriv.Count - 1 Do
        Debug.WriteLine(DBDriv.DriverName(i));
    End For;
End Sub UserProc;

After executing the example the development environment console displays names of all OLE DB drivers installed in the system.

See also:

IDalOleDbDrivers