DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: melqui
今日帖子: 6
在线用户: 10
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 aknightchen (.) ★☆☆☆☆ -
盒子活跃会员
2022/11/24 16:15:51
标题:
哪位大哥指点一下:  是否能在fastReport的脚本中, 捕捉到错误吗? 浏览:732
加入我的收藏
楼主: 我们在fsScript中, 写脚本.

但脚本中,不支持 try...except...end on E:Exception do这种写法.

无法捕捉到错误.用的是 fastReport 5.2.12版

当然, 如果在程序外面, 则可以通过 fsScript1.ErrorMsg方法得到错误.

如果能支持try...except...end on E:Exception do这种写法.
那就能做出更友好的程序来,

哪位大哥指点一下, 万分感谢!
----------------------------------------------
...
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/11/24 21:56:56
1楼: try this PDF
https://www.fast-report.com/public_download/fs_en.pdf

https://fastreports.github.io/FastReport.Documentation/Script.html
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 aknightchen (.) ★☆☆☆☆ -
盒子活跃会员
2022/11/25 10:30:00
2楼: thanks!
----------------------------------------------
...
作者:
男 flcop (flcop) ▲▲▲▲△ -
普通会员
2022/11/25 10:40:11
3楼: 当然可以,这样处理:
var
  I: Integer;
begin
  try
    I := 100 div 0;
  except
    ShowMessage(ExceptionClassName + ': ' + ExceptionMessage);
  end;
end
----------------------------------------------
-
作者:
男 aknightchen (.) ★☆☆☆☆ -
盒子活跃会员
2022/11/25 12:14:50
4楼: 按楼上,完全测试通过. 

非常非常感谢flcop!!!
----------------------------------------------
...
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行76.17188毫秒 RSS