delphi7中checkbox的使用……

2025-04-28 02:02:54
推荐回答(1个)
回答1:

sqlstr:='select * from yourtable where ';
if checkbox1.checked then sqlstr:=sqlstr+'xm="yourname"';
if checkbox2.checked then sqlstr:=sqlstr+'and bj="sdfas"';