How to find TeeChart version number at runtime?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Geocentrix
Newbie
Newbie
Posts: 8
Joined: Mon Aug 20, 2007 12:00 am

How to find TeeChart version number at runtime?

Post by Geocentrix » Tue Sep 01, 2009 3:13 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: How to find TeeChart version number at runtime?

Post by Narcís » Tue Sep 01, 2009 3:26 pm

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Geocentrix
Newbie
Newbie
Posts: 8
Joined: Mon Aug 20, 2007 12:00 am

Re: How to find TeeChart version number at runtime?

Post by Geocentrix » Tue Sep 01, 2009 4:40 pm

Narcís

A perfect answer - thanks!

Andrew

Post Reply