张志峰的博客

水滴石川,积少成多。

导航

Delphi TClientDataset查找定位功能

Posted on 2016-06-17 14:01  ╰★张志峰★╮  阅读(491)  评论(0编辑  收藏  举报

if CDSUserFunc.Locate('mod_id;res_id', VarArrayOf([UserFunc.MOD_ID, UserFunc.RES_ID]), [loCaseInsensitive]) then
begin
CDSUserFunc.Delete;
end;

 

if not CDS_UserDict.Locate('DICT_ID', strDictId, [loCaseInsensitive]) then
begin