Page 1 of 1

compilation directives for different TeeChart versions

Posted: Thu Apr 20, 2006 5:28 pm
by 9335230
Hi,

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

Thanks.
Beetle.

Posted: Mon Apr 24, 2006 6:12 pm
by 9335230
yes or no?

Posted: Fri Apr 28, 2006 9:25 am
by Pep
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;