TBarSeries Multibar error

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MetegrityInc
Newbie
Newbie
Posts: 4
Joined: Wed Mar 10, 2004 5:00 am
Location: Edmonton
Contact:

TBarSeries Multibar error

Post by MetegrityInc » Tue Jul 06, 2004 9:22 pm

Hi, I'm using Delphi 7, TeeChart Pro v7.

The error "Incompatible types 'TMultibar' and 'TMenubreak'" is generated by the following code:
-----

Code: Select all

var
   i : integer;
   seriesBar : TBarSeries;
begin
   for i := 0 to chtActive.SeriesCount - 1 do
      if chtActive.Series[i] is TBarSeries then
      begin
         seriesBar := chtActive.Series[i] as TBarSeries;
         Case rgpStacked.ItemIndex of
            0: seriesBar.MultiBar := mbStacked;
            1: seriesBar.MultiBar := mbSide;
            2: seriesBar.MultiBar := mbNone;
        end;
     end;
end;
----

The compiler indicates that "mbNone" is the culprit. Ideas?

Leah

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Jul 07, 2004 6:12 am

Hi.

The following might help:

Code: Select all

r 
   i : integer; 
   seriesBar : TBarSeries; 
begin 
   for i := 0 to chtActive.SeriesCount - 1 do 
      if chtActive.Series[i] is TBarSeries then 
      begin 
         seriesBar := chtActive.Series[i] as TBarSeries; 
         Case rgpStacked.ItemIndex of 
            0: seriesBar.MultiBar := Series.mbStacked; 
            1: seriesBar.MultiBar := Series.mbSide; 
            2: seriesBar.MultiBar := Series.mbNone; 
        end; 
     end; 
end;

Marjan Slatinek,
http://www.steema.com

MetegrityInc
Newbie
Newbie
Posts: 4
Joined: Wed Mar 10, 2004 5:00 am
Location: Edmonton
Contact:

Post by MetegrityInc » Wed Jul 07, 2004 1:50 pm

Thanks for the quick reply. That works nicely.

Post Reply