ADOQuery1相关属性
LockType := ltBatchOptimistic;
CursorType:=ctStatic;对这样一个已经打开的ADO,我不断的delete,直到recordcount=0,再调用CancelBatch函数就出错了,提示bof或者eof出错,怎办?
LockType := ltBatchOptimistic;
CursorType:=ctStatic;对这样一个已经打开的ADO,我不断的delete,直到recordcount=0,再调用CancelBatch函数就出错了,提示bof或者eof出错,怎办?
//do
end
不要用recordcount
ADOQUery1.CancelBatch(arAll);
if not (ADOQuery.IsEmpty) then ADOQuery.Delete