Главная страница | назад





Article #23012: Checking the BDE version progammatically.

QUESTION:

How can I check for the BDE version programmatically?

ANSWER:

Your application might need a certain version of the BDE to run properly. So you will want to make sure that version is installed. Here is a code sample that shows you how to check which version of the BDE is installed.

uses
Forms,
DB,
BDE,
Dialogs,
SysUtils;
{$R *.RES}
var
ThisVersion : SYSVersion;
begin
DbiGetSysVersion(ThisVersion);
ShowMessage('BORLAND DATABASE ENGINE VERSION = ' + IntToStr(ThisVersion.iVersion));
end.

Last Modified: 15-SEP-00