Delphi try…except… 如果遇到执行错误弹窗提示

2019-10-3112:23:13 评论 1,400 views

为了实现遇到执行错误并弹窗提示的功能更,可以使用下面的结构:

try
    执行语句;
except
    ShowMessage(Exception(ExceptObject).Message);
end;

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: