I'd like to connect tasks in a gantt. I'm using data aware dbchart, so i thought this:
TChartSeries* myseries;
for(int i = 0; i<ChartListBox->Count; i++){
if(ChartListBox->Series->Active){
myseries = ChartListBox->Series;
break;
}
}
TGanttSeries* xseries = dynamic_cast<TGanttSeries*>(myseries);
if(xseries){
xseries->NextTask[0] = 1; //1. compiler error
xseries->NextTask->Items[0] = 1; //2. does nothing
}
which is how i understand the delphi code example in the help. Here I'm assuming 0 is the first gantt bar, 1 the next etc.
However, for code line 1) the compiler complains it could not find a match for operator TChartValueList::=(int)?,
and 2 does nothing.
Better yet, click a bar, (ctrl) click another bar, release ctrl, to join them graphically. Perhaps i'm being overly optimistic!

All help appreciated.
Cheers, nile.