Page 1 of 1

How to find TeeChart version number at runtime?

Posted: Tue Sep 01, 2009 3:13 pm
by 10046493
I want to display the version number (major/minor/revision) of TeeChart in my app at run-time, but I can't find a function of macro that allows me to do that.

Does anyone know a simple way to get this information at compile or run-time?

Many thanks

Andrew Bond

Re: How to find TeeChart version number at runtime?

Posted: Tue Sep 01, 2009 3:26 pm
by narcis
Hi Andrew,

Yes, you can use unit TeeConst as shown below for that:

Code: Select all

uses TeeConst;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Title.Text.Clear;
  Chart1.Title.Text.Add('Version: ' + TeeChartVersion + TeeVCLMinorVersion);
  Chart1.Title.Text.Add('Build: ' + TeeVCLBuildVersion);
end;

Re: How to find TeeChart version number at runtime?

Posted: Tue Sep 01, 2009 4:40 pm
by 10046493
NarcĂ­s

A perfect answer - thanks!

Andrew