急!!如何在error事件中修改参数,使的运行程序时防止弹出错误信息!

hjjkey 2002-02-28 09:15:25
如题,谢谢!!
...全文
98 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
WhoAmIWhoAreu 2002-03-05
  • 打赏
  • 举报
回复
看看
pfc中对这种事件的处理.
vcpb 2002-03-05
  • 打赏
  • 举报
回复
在最后加return试试
hjjkey 2002-03-04
  • 打赏
  • 举报
回复
to :llitcwl(中国龙)和vcpb(yeah)
我试过打开自己定义的消息窗口,但关闭窗口后,系统还弹出错误信息!怎么解决啊??
vcpb 2002-03-01
  • 打赏
  • 举报
回复
同意: llitcwl(中国龙) (
打开一个你自己的消息提示窗口
string ls_error
ls_error = '~r~n 发生一系统错误:' + &
'~r~n~r~n 错误代码: ' + string (error.number) + &
'~r~n 错误信息: ' + error.text + &
'~r~n 错误窗口/菜单: ' + error.windowmenu + &
'~r~n 错误对象: ' + error.object + &
'~r~n 错误事件: ' + error. objectevent + &
'~r~n 错误行: ' + string(error.line)
zhanwei 2002-03-01
  • 打赏
  • 举报
回复
System Error Event:
Description

Occurs when a serious execution time error occurs (such as trying to open a nonexistent window) if the error is not handled in a TRY-CATCH block.

Event ID

Event ID Objects
None Application
Arguments

None

Return value

None (do not use a RETURN statement)

Usage

If there is no script for the SystemError event, PowerBuilder displays a message box with the PowerBuilder error number and error message text.
You can prevent the SystemError event from occuring by handling errors in TRY-CATCH blocks. Well-designed exception-handling code gives application users a better chance to recover from error conditions and run the application without interruption.

llitcwl 2002-02-28
  • 打赏
  • 举报
回复
打开一个你自己的消息提示窗口
hjjkey 2002-02-28
  • 打赏
  • 举报
回复
在error事件里return 1不行,数据窗口的dberror可以
不知道还有其它方法没有?盼复!
abcn 2002-02-28
  • 打赏
  • 举报
回复
在error事件中最后一行加上
return 1

400

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 非技术版
社区管理员
  • 非技术版社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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