Z zhcg Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-06 #1 我想在EDIT里输入一个字,就立即可以看到结果。我用了LOCATE、FILTER两个方法,但有时会出错,请问哪位高手有好的例程源码提供,感激不尽!
少 少爷的拐杖 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-06 #2 procedure TForm12.Edit10Change(Sender: TObject); begin Query1.Close; Query1.SQL.Clear; Query1.SQL.Add('select * from Herbalist'); Query1.SQL.Add('where 药品名称 like ''%'+Edit10.Text+'%'''); Query1.Open; end;
procedure TForm12.Edit10Change(Sender: TObject); begin Query1.Close; Query1.SQL.Clear; Query1.SQL.Add('select * from Herbalist'); Query1.SQL.Add('where 药品名称 like ''%'+Edit10.Text+'%'''); Query1.Open; end;