Delphi Examples: DbiGetDriverDesc

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiGetDriverDesc

Return to chapter overview

Obtain information about a certain driver.

This example uses the following input:

 fDbiGetDriverDesc('INTRBASE', TmpList);

 

The procedure is defined as:

Procedure fDbiGetDriverDesc(DrvName: string; DriverList: TStringList);

var

  DrvDesc : DRVType;

begin

  Check(DbiGetDriverDesc(PChar(DrvName), DrvDesc));

  with DriverList do begin

    Add('Driver Type: ' + DrvDesc.szType);

    Add('Text: ' + DrvDesc.szText);

    Add('Database Type: ' + DrvDesc.szDbType);

  end;

end;