I purchased V8 for my main machine, but I have not yet purchased a second copy for my notebook yet, so I am still running V4 on that PC.
Can I use an IFDEF to hide code that only compiles in V8?
I tried IFDEF TeeChart8 without success.
Thanks, Steve
Determine TeeChart version during compile?
Hi Steve,
you can check which TeeChart Pro version is using with the TeeChartVersion constant defined at TeeConst.pas :
TeeChartVersion =String('8');
you can check which TeeChart Pro version is using with the TeeChartVersion constant defined at TeeConst.pas :
TeeChartVersion =String('8');
Code: Select all
Uses TeeConst :
if TeeChartVersion <> '8' then
...
Pep Jorge
http://support.steema.com
http://support.steema.com
Detecting TeeChart Version at Compile time
I think that will work during run time, but there are methods, procedures, etc available in TeeChart 8 that are not available in earlier versions. I would like to wrap my new code around IFDEF statements so it will still compile on a PC with older versions of TeeChart.
Thanks for the reply.
Steve
Thanks for the reply.
Steve
Hi Steve,
in that case you can use (with Delphi7 and above) the following :
in that case you can use (with Delphi7 and above) the following :
Code: Select all
uses
TeeConst;
procedure TForm1.FormCreate(Sender: TObject);
begin
{$IF TeeChartVersion='8'}
Caption:='Eight';
{$ELSE}
Caption:='Seven';
{$IFEND}
end;
Pep Jorge
http://support.steema.com
http://support.steema.com
Checking TeeChart Version at Compile
Perfect - exactly what I needed.
Thanks you very much.
Steve
Thanks you very much.
Steve