有时候用table组件操作比较方便,所以找了一个用table查询的方法,这里的AT_IsFindCall是adotable组件,关键语句为红色,代码如下:
if not AT_IsFindCall.active then AT_IsFindCall.open;
AT_IsFindCall.filter:='IncallNumber='+CallNumber_FC;
AT_IsFindCall.filtered:=true;
if AT_IsFindCall.recordcount>0 then Result:=true
else Result:=false;
AT_IsFindCall.close;