1,178
社区成员
发帖
与我相关
我的任务
分享
if(OpenDialog1->Execute())
{
EEData1->Active=false;
EEData1->TableName=OpenDialog1->FileName;
int i,j,val;
TLocateOptions Opts;
char buf[1280];
EEData1->Active=true;
for(i=1;i<=17;i++){
wsprintf(buf,"%02X",i-1);
EEDataGrid->Cells[i][0]=buf;
}
Opts.Clear();
for(i=0;i<(CALIBRATIONDATALEN)/16;i++){
wsprintf(buf,"%02X_",i);
EEDataGrid->Cells[0][i+1]=buf;
EEData1->Locate("Address",i,Opts);
for(j=0;j<16;j++){
wsprintf(buf,"%02X",j);
val=EEData1->FieldByName(buf)->AsInteger;
wsprintf(buf,"%02X",val);
EEDataGrid->Cells[j+1][i+1]=buf;
}
}
EEData1->Active=false;
}