Get error when trying to set Series17.MultiArea:= maNone
Posted: Wed Feb 13, 2013 1:22 pm
I have created a chart that shows 2 series as Horizontal Areas, and have placed a checkbox on the form to allow the user to selected whether the 2 series be stacked or not; both series are in the same stackgroup. See code below;
procedure TMainForm.CBoxBacklogClick(Sender: TObject);
begin
if MainForm.CBoxBacklog.Checked then Series17.MultiArea:= maStacked
else Series17.MultiArea:= maNone;
end;
Sadly when I attempt to compile this code I get the error
[dcc32 Error] Main.pas(345): E2010 Incompatible types: 'TMultiArea' and 'TMenuAnimations'
for the line else Series17.MultiArea:= maNone;
The compiler happily accepts maStacked so why does it fail on maNone?
procedure TMainForm.CBoxBacklogClick(Sender: TObject);
begin
if MainForm.CBoxBacklog.Checked then Series17.MultiArea:= maStacked
else Series17.MultiArea:= maNone;
end;
Sadly when I attempt to compile this code I get the error
[dcc32 Error] Main.pas(345): E2010 Incompatible types: 'TMultiArea' and 'TMenuAnimations'
for the line else Series17.MultiArea:= maNone;
The compiler happily accepts maStacked so why does it fail on maNone?