8
8525310
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> qry1.sql.Clear;<br> qry1.sql.add('update Goods set 状态=false where 货物编号=:bm1');<br> qry1.parameters.parambyname('bm1').Value:=combobox1.text;<br> qry1.ExecSQL;<br> showmessage('成功添加联运单信息!');<br>end;<br>提示至少一个参数没有付值。货物编号有值。qry1.sql.Clear;<br> qry1.sql.add('select * from Goods where 货物编号=:bm1');<br> qry1.parameters.parambyname('bm1').Value:=combobox1.text;<br> qry1.ExecSQL;<br>这样写是没问题的。奇怪了