10-05-2015, 03:52 PM
السلام عليكم
جرب شيئ مثل هذا
كود :
Var
s,s1,s2 : String;
begin
s:='';
s1:=Edit1.Text;
s2:=Edit1.Text;
if s1<>'' then s:='(ane='+QuotedStr(s1)+')';
if s2<>'' then begin
if s<>'' then s:=s+' AND ';
s:=s+'(moi='+QuotedStr(s2)+')';
end;
Table1.Filter:=s;
Table1.Filtered:=s<>'';
end;
