«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

» 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 »