Beranda > Delphi > How to check if the BDE is installed

How to check if the BDE is installed

Your application may use several approaches to databases depending on what is installed on the user’s computer. Before you use the BDE you may want to check if it has been installed. If not then you may either ask the user to do so first, else just use something else. The function below (roughly a couple lines of code) checks for BDE presence.

uses
  Bde;

function BDEInstalled: Boolean;
begin
  Result := (dbiInit(nil) = 0);
end;
Iklan
Kategori:Delphi
  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: