使用ClientDataSet.CloneCursor

总结:
1. 使用CloneCursor(FSourceCds, false), 新的Cds移动(first, next, piror, last)不会影响到FSourceCds的移动.

 

  pvParentKey:=FCdsGongChengPZJL_TV.FieldByName('FKey').AsString;
    lvTmpCds := TClientDataSet.Create(nil);
    lvTmpCds.CloneCursor(FCdsGongChengPZJL_TV, false);
    lvTmpCds.First;
    raise Exception.Create(
          'Clone:' + lvTmpCds.FieldByName('FKey').AsString
          + sLineBreak + 'After Clone:' + FCdsGongChengPZJL_TV.FieldByName('FKey').AsString
          + sLineBreak + 'Before Clone:' + pvParentKey

使用ClientDataSet.CloneCursor

 

raise Exception.Create(
      'Clone Filter[' + lvTmpCds.Filter + '] RecordCount:' + IntToStr(lvTmpCds.RecordCount)
      + sLineBreak + 'Source Filter[' + FCdsGongChengPZJL_TV.Filter + '] RecordCount:' + IntToStr(FCdsGongChengPZJL_TV.RecordCount)
      );

使用ClientDataSet.CloneCursor

上一篇:中国移动2016年Web应用防火墙集采:绿盟、深信服中标


下一篇:Maven与Clover集成总结,license问题