if not caipintemp.Locate('caipinid',querycaipin.FieldValues['caipinid'],[loCaseInsensitive]) then
begin
...........
end
else
begin
qry2.Close;
qry2.SQL.Clear;
qry2.SQL.Add('select * from a where b_bqty=1);
qry2.Open;
caipintemp.Locate('caipinid',qry2.FieldValues['id'],[loCaseInsensitive]);
//我这里怎么可以把caipintemp.Locate的数据进行转移呢?
if not caipintemp.Locate('caipinid',qry2.FieldValues['id'],[loCaseInsensitive]) then
begin
...................
end;
end;
end;

解决方案 »

  1.   

    caipintemp.Locate   不就是指向我需要的数据么??我现在无法转移指针呢我这个先是指向了caipintemp.Locate('caipinid',querycaipin.FieldValues['caipinid'],[loCaseInsensitive]) 然后我想caipintemp.Locate('caipinid',qry2.FieldValues['id'],[loCaseInsensitive]);
    好像不能实现??
      

  2.   

    clientdataset顾名思义是数据集,你绑定了一个数据集,怎么能跨数据集Locate呀