IDalOleDbDrivers.Count

Syntax

Count: Integer;

Description

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

Example

Sub Main;

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 Main;

Names of all OLE DB drivers installed in the system are displayed in the development environment console after executing this example.

See also:

IDalOleDbDrivers