int number = 0;
TryStrToInt(AUTOID,number);
number++; //下一条??不连续怎么办?就要判断再继续,网络量大了
AUTOID = String(number);
ClientModule1->CDS_h->DisableControls();
ClientModule1->CDS_h->Close();
ClientModule1->CDS_h->CommandText = "select * from jh_head where AUTOID = " + AUTOID;
ClientModule1->CDS_h->Open();
ClientModule1->CDS_h->EnableControls();
1.用DisableControls();关闭连接,才能刷新
2.用数据库的自增字段还控制上下条存在问题,自增号也许不连续,另外还要索引才行.算了,还是用自带的PacketRecords来控制提取量吧