The MyDAC version number as a Readonly property

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
TheLion
Posts: 39
Joined: Thu 25 Nov 2004 11:28
Location: Copenhagen/Denmark

The MyDAC version number as a Readonly property

Post by TheLion » Wed 29 Dec 2004 13:44

Hi :-)

Is it possible to get the currect MyDAC version number from any of the MyDAC component?

I would like to include it in program logs. I have so many programs, it would be nice to be able to check witch version of MyDAC a program was using.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: The MyDAC version number as a Readonly property

Post by Ikar » Wed 29 Dec 2004 13:57

Check at run-time a value of MYDACVersion variable

TheLion
Posts: 39
Joined: Thu 25 Nov 2004 11:28
Location: Copenhagen/Denmark

Post by TheLion » Wed 29 Dec 2004 14:11

OK. sounds simple enough, but I had a hard time finding it :cry:

It isn't in MyDAC help :-(

I finnaly got it. Its a "global" string :-)

function GetMyDACVersion: string;
begin
Result := MYDACVersion;
end;

Post Reply