if TClientDataSet.Locate('',VarArrayof[],[]) then ////找到了; 是用来单条记录查找的;可以这样; LS_ClinetDataSet.Data := ClientDataSet; iCount : Integer;//是一个整形变量,全局 iCount := 0; while ((Not LS_ClientDataSet.Eof) and (V)) do begin if LS-ClientDataSet.Locate(....) then begin Delete; Inc(LS_Client); V := True; Next; end else V := False; end; ShowMessage(IntToStr(iCount))
SQL.add('select * from table where name='+''''+edit1.text+'''');得到记录数
反回的结果,你用
reccound.
////找到了;
是用来单条记录查找的;可以这样;
LS_ClinetDataSet.Data := ClientDataSet;
iCount : Integer;//是一个整形变量,全局
iCount := 0;
while ((Not LS_ClientDataSet.Eof) and (V)) do
begin
if LS-ClientDataSet.Locate(....) then
begin
Delete;
Inc(LS_Client);
V := True;
Next;
end else
V := False;
end;
ShowMessage(IntToStr(iCount))
TClientDataSet.DataReQuest('..');
TDataSetProvider....上边的那种效率不一定高;如果你将其都在客户端的话,根本就是效率太低了;