L laoli Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-19 #1 我记得tabel里用setkey+gotokey来进行查找但是为什么在adotabel里不行。。。。。
Y ysai Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-19 #2 adotable1.locate('name','andy',[]); function Locate(const KeyFields: String; const KeyValues: Variant; Options: TLocateOptions)
adotable1.locate('name','andy',[]); function Locate(const KeyFields: String; const KeyValues: Variant; Options: TLocateOptions)
S seven_918 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-19 #3 因为table与adotable不是继承于同一个类,在adotable里没有setkey和gotokey这样的方法 你可以用ysai说的Locate来查找
银 银雨辰 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-19 #4 你也可以在adotable的filter属性里设置过滤条件,然后 filtered:=true