compilation directives for different TeeChart versions

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
beetle
Newbie
Newbie
Posts: 59
Joined: Fri Dec 12, 2003 5:00 am

compilation directives for different TeeChart versions

Post by beetle » Thu Apr 20, 2006 5:28 pm

Hi,

is there "#define" to differ between TeeChart versions?

Thanks.
Beetle.

beetle
Newbie
Newbie
Posts: 59
Joined: Fri Dec 12, 2003 5:00 am

Post by beetle » Mon Apr 24, 2006 6:12 pm

yes or no?

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Apr 28, 2006 9:25 am

Hi Beetle,

yes, there's a constant defined in the TeeConst.pas unit, you can check its value using $IF, as in the following code :

Code: Select all

uses
  TeeConst;

procedure TForm1.FormCreate(Sender: TObject);
begin {$IF TeeChartVersion='8'}
  Caption:='Eight';
{$ELSE}
  Caption:='Seven';
{$IFEND}
end;

Post Reply