今
今天能看见山
Unregistered / Unconfirmed
GUEST, unregistred user!
程序是这样的:
(TLineSeries*)SeriesList->Items[t]->Title=EngDataModule->SelectADOQuery->FieldByName("年龄")->AsString;
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-5],"入学",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-4],"一级",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-3],"二级",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-2],"三级",clRed);
(TLineSeries*)SeriesList->Items[t++]->Addy(IntRes[p-1],"四级",clRed);
其中:
SeriesList->Add(lineStuSeries1);这个我已经加过了。
那里面的t是一个循环数,刚开始,也就是进行上面的语句的时候,t为0。也就是应该是在调用lineStuSeries1了。可是它给的错误是:
C++ Error] EngUnit.cpp(120): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(121): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(122): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(123): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(124): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(125): E2288 Pointer to structure required on left side of -> or ->*
是不是Items[]里不能是变量?还是我的控件数组没有弄好?各位帮忙看看。谢谢了!
(TLineSeries*)SeriesList->Items[t]->Title=EngDataModule->SelectADOQuery->FieldByName("年龄")->AsString;
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-5],"入学",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-4],"一级",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-3],"二级",clRed);
(TLineSeries*)SeriesList->Items[t]->Addy(IntRes[p-2],"三级",clRed);
(TLineSeries*)SeriesList->Items[t++]->Addy(IntRes[p-1],"四级",clRed);
其中:
SeriesList->Add(lineStuSeries1);这个我已经加过了。
那里面的t是一个循环数,刚开始,也就是进行上面的语句的时候,t为0。也就是应该是在调用lineStuSeries1了。可是它给的错误是:
C++ Error] EngUnit.cpp(120): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(121): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(122): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(123): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(124): E2288 Pointer to structure required on left side of -> or ->*
[C++ Error] EngUnit.cpp(125): E2288 Pointer to structure required on left side of -> or ->*
是不是Items[]里不能是变量?还是我的控件数组没有弄好?各位帮忙看看。谢谢了!