Y YFeral Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-11 #2 用locate函数,DBGrid相关的数据集使用模糊查询。 locate(FieldName, edit1.Text, [loPartialKey])查询就行
N naughtboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-11 #4 或者 with ClientDataSet1 do begin SetKey; FieldByName('State').AsString := 'CA'; FieldByName('City').AsString := 'Santa'; GotoNearest; end;
或者 with ClientDataSet1 do begin SetKey; FieldByName('State').AsString := 'CA'; FieldByName('City').AsString := 'Santa'; GotoNearest; end;
B bernhn Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-11 #6 procedure TFrm_bmxx.BitBtn10Click(Sender: TObject); begin adoquery1.Locate('bmmc',edit1.Text,[loPartialKey]); end; 我这样做为什么不行呢?
procedure TFrm_bmxx.BitBtn10Click(Sender: TObject); begin adoquery1.Locate('bmmc',edit1.Text,[loPartialKey]); end; 我这样做为什么不行呢?
Z ZRWeng Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-11 #7 那就 doquery1.Locate('bmmc',edit1.Text,[]);