Notice Of Closure

Please note that this website is due to close down on 15th June 2020.

In the interim I will try to move as much content as possible over to my GitHub account. Thanks to everyone who has supported the site over the years.

» Help

How to read the installed ADO version

   

With different versions of MDAC available it is sometimes good to check whether the latest version is installed to make sure everything works fine. The following function returns the installed ADO version.

uses
  ComObj;
function GetADOVersion: Double;
var
  ADO: OLEVariant;
begin
  try
    ADO := CreateOLEObject('adodb.connection');
    Result := StrToFloat(ADO.Version);
    ADO := null;
  except
    Result := 0.0;
  end;
end;
Author: Unknown
Added: 2007-06-02
Last updated: 2007-06-02

« Return to contents »