[All]
Checking the BDE version progammatically.
By: Kendall Sullivan
Abstract: Some applications require that the correct BDE version be install, this code example shows you how to do it programmatically.
|
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.
|
Connect with Us