...check, if the Borland Database Engine (BDE) is installed?

Author: Thomas Stutz

Category: Database

uses
  
BDE;

function CheckBDEInstalled: Boolean;
begin
  
Result := (dbiInit(nil) = DBIERR_NONE)
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  if 
CheckBDEInstalled then
    
ShowMessage('BDE is installed.')
  else
    
ShowMessage('BDE is not installed.')
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base