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
How to find TeeChart version number at runtime?
-
- Newbie
- Posts: 8
- Joined: Mon Aug 20, 2007 12:00 am
-
- 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?
Hi Andrew,
Yes, you can use unit TeeConst as shown below for that:
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 8
- Joined: Mon Aug 20, 2007 12:00 am
Re: How to find TeeChart version number at runtime?
Narcís
A perfect answer - thanks!
Andrew
A perfect answer - thanks!
Andrew