调用存储过程出现错误

fhwang8 2004-08-24 05:01:37
i_y=integer(trim(ddlb_1.text))
i_r=integer(trim(ddlb_3.text))
i_n=integer(trim(ddlb_2.text))

//计算明细
declare lp_2 procedure for kqdata_search
@i_y = :i_y,@i_r = :i_r,@i_n = :i_n;
execute lp_2;
if sqlca.sqlcode = -1 then
messagebox("错误信息",'计算当月考勤'+'~r~t'+string(sqlca.sqlcode)+"|"+sqlca.sqlerrtext)
end if
close lp_2;

提示参照空对象??
...全文
88 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fhwang8 2004-08-25
  • 打赏
  • 举报
回复
to: balloonman2002()
if sqlca.sqlcode = -1 then 提示在这行有错误,但是我觉得可能是调用存储过程没起作用。
to: lfd(好好学习,天天向上) 参数值均不为空
lfd 2004-08-24
  • 打赏
  • 举报
回复
是不是下拉列表框中没有选择数据啊?
balloonman2002 2004-08-24
  • 打赏
  • 举报
回复
执行到哪一句提示提示参照空对象?
实在不行请参见如何在PB中调用存储过程:
http://community.csdn.net/Expert/TopicView1.asp?id=3305477

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧