IDbDrivers.Item

Syntax

Item(Index: Integer): IDbDriver;

Parameters

Index - index of the supported DBMS driver.

Description

The Item property returns the information about the DBMS driver supported in the platform. A driver index is passed by the Index parameter.

Example

Sub Main;

Var

Man: IMetabaseManager;

Drivers: IDbDrivers;

Driver: IDbDriver;

i: Integer;

Begin

Man := MetabaseManagerFactory.Active;

Drivers := Man.Drivers;

For i := 0 To Drivers.Count - 1 Do

Driver := Drivers.Item(i);

Debug.WriteLine("Name: " + Driver.Name + "; Identifier: " + Driver.Id + "; Key: " + Driver.Key.ToString);

End For;

End Sub Main;

After executing the example the information about all drivers of the DBMS supported by the platform will be displayed in the development environment console.

See also:

IDbDrivers