604
社区成员
发帖
与我相关
我的任务
分享
void __fastcall TForm32::setGS(void)
{
Form32->NSG->RowCount=NSD.tgnum+1;
Form32->TGNUM->Position=(NSD.tgnum);//我在此处断点查看各值都是正常
// Application->MessageBox("","",0);
this->TGNUM_T->Text=IntToStr(NSD.tgnum);//单步到这句就抛出异常 程序终止 查看各值 如上图所见
this->Edit4->Text=NSD.sendspeed;
this->Edit1->Text=NSD.L1gsc1;
this->Edit2->Text=NSD.L1gsc2;
this->Edit3->Text=NSD.L1gsc3;
for(int k=0;k<NSD.tgnum;k++){
Form32->NSG->Cells[0][k+1]="第"+IntToStr(k+1)+"组";
Form32->NSG->Cells[1][k+1]=WideString(NSD.ledbit[k]);
Form32->NSG->Cells[2][k+1]=NSD.dataname[k];
Form32->NSG->Cells[3][k+1]=NSD.datavalue[k];
}void __fastcall TForm32::setGS(void)
{
NSG->RowCount = NSD.tgnum+1;
TGNUM->Position = NSD.tgnum;
TGNUM_T->Text = IntToStr(NSD.tgnum);
Edit4->Text = NSD.sendspeed;
Edit1->Text = NSD.L1gsc1;
Edit2->Text = NSD.L1gsc2;
Edit3->Text = NSD.L1gsc3;
for (int k=0;k<NSD.tgnum;k++)
{
NSG->Cells[0][k+1] = "第"+IntToStr(k+1)+"组";
NSG->Cells[1][k+1] = WideString(NSD.ledbit[k]);
NSG->Cells[2][k+1] = NSD.dataname[k];
NSG->Cells[3][k+1] = NSD.datavalue[k];
}
...