S
seeme0526
Unregistered / Unconfirmed
GUEST, unregistred user!
strsql:='select * from table1 where ';
if (edit1.text<>'') and (edit2.text='') and (cob_dw.text='') then strsql:=strsql+' d1='+edit1.text;
if (edit.text<>'') and (edit2.text<>'') and (cob_dw.text='') then strsql:=strsql+' d1='+edit1.text+' d2='+edit2.text;
谢了。
if (edit1.text<>'') and (edit2.text='') and (cob_dw.text='') then strsql:=strsql+' d1='+edit1.text;
if (edit.text<>'') and (edit2.text<>'') and (cob_dw.text='') then strsql:=strsql+' d1='+edit1.text+' d2='+edit2.text;
谢了。