Driver(Index: Integer): IDalDriver;
Index - driver index.
The Driver property returns the driver installed in the system that is implemented by the IDalDrive interface.
Add links to the Collections, Dal, and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
DBDriv: IDalOleDbDrivers;
Driv: IDalDriver;
ConnectDesc: IDalConnectionDescriptor;
Params: IDalConnectionDescriptorParams;
Params_name: IStringList;
i: Integer;
Begin
MB := MetabaseClass.Active;
Params_name := New StringList.Create;
DBDriv := New DalOleDbDrivers.Create;
Driv := DBDriv.Driver(0);
ConnectDesc := Driv.CreateDescriptor;
Params := ConnectDesc.Params;
For i := 0 To Params.Count - 1 Do
Params_name.Add(Params.Item(i).Name);
End For;
i := Params.Count;
End Sub UserProc;
After executing the example the "i" variable contains the number, and the Params_name variable contains names of all parameters that are necessary for connection using the first OLE DB driver installed in the system.
See also: