Count: Integer;
The Count property returns the number of OLE DB drivers installed in the system.
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;
After executing the example the development environment console displays names of all OLE DB drivers installed in the system.
See also: