当尝试访问TChartValueList的元素时,任何人都可以帮助检查下面列出的代码段,其中包含错误编译,谢谢。
((TCandleSeries *) chartInfo.area[index].series[SER_PR_PRICE])->OnGetPointerStyle = &SeriesCandleGetPointerStyle;
TSeriesPointerStyle _fastcall TForm1::SeriesCandleGetPointerStyle(TChartSeries *Sender, int ValueIndex)
{
TCandleSeries *series;
gSeries = findSeries(AREA_TYPE_PRICE, SER_PR_PRICE);
if (gSeries != NULL)
{
series = (TCandleSeries *) gSeries;
series->HighLowPen->Color = series->DownCloseColor;
if (ValueIndex > 0)
{
if (series->CloseValues[ValueIndex] >= series->OpenValues[ValueIndex])
*****^^^^^^^^^^ [BCC32 Error] E2093 'operator>=' not implemented in type 'TChartValueList' for arguments of the same type*****
series->HighLowPen->Color = series->UpCloseColor;
}
}
return psRectangle;
}