pb代码不知道错再那里

来源:百度知道 编辑:UC知道 时间:2024/05/30 08:41:31
int i_hdID,i_spsl,i_i
date ld_jhsj
string ls_hwName

if sle_hdID.text="" or isNull(sle_hdID.text) then
messagebox("缺少数据","请输入货单号")
sle_hdID.setfocus()
return
elseif sle_hwName.text="" or isNull(sle_hwName.text) then
messagebox("缺少数据","请输入货物名称")
sle_hwName.setfocus()
return
end if

/*select hwd.hdID
into :i_i
from hwd
where deliveryorder.hdID=:i_hdID;
if i_i<>0 then
messagebox("错误信息","货单号第"+string(i_i)+"号重号!请改正。")
sle_hdID.setfocus()
return
end if
*/

/*
i_hdID.text=sle_hdID.text
ls_hwName.text=sle_hwName.text
ld_jhsj.text=sle_jhsj
i_spsl.text=sle_spsl.text

Date(ls_hwName)
*/

/*insert into "hwd"
("hdID","hwName","jhsj","spsl")
values(:i_hdID,:ls_hwName,:

什么错误?

/* …… */屏蔽掉的那些你是屏掉了还是打开了有错?

看你没有屏蔽的那一段:
int i_hdID,i_spsl,i_i
date ld_jhsj
string ls_hwName

if sle_hdID.text="" or isNull(sle_hdID.text) then
messagebox("缺少数据","请输入货单号")
sle_hdID.setfocus()
return
elseif sle_hwName.text="" or isNull(sle_hwName.text) then
messagebox("缺少数据","请输入货物名称")
sle_hwName.setfocus()
return
end if

似乎没有什么错。