Delphi try abort、exit except 、finally end 执行情况


本文整理自网络,侵删。

 

Delphi try abort、exit except 、finally end 执行情况

 try

    abort;

    Edit1.Text := timetostr(now); //没执行

  except

  //执行了

    ShowMessage('1');

  end;

 

  try

    exit;

    Edit1.Text := timetostr(now); //没执行

  except

  //没执行

    ShowMessage('1');

  end;

 

  try

    exit;

    Edit1.Text := timetostr(now); //没执行

  finally

  //执行了

    ShowMessage('1');

  end;

 

  try

    abort;

    Edit1.Text := timetostr(now); //没执行

  finally

  //执行了

    ShowMessage('1');

  end;

 

 

――――――――――――――――

原文链接:https://blog.csdn.net/ozhy111/article/details/90902987

相关阅读 >>

Delphi applicationevents1 webbrowser1屏蔽右键菜单

Delphi中获取memo鼠标所在位置的行和列

Delphi用内存流方式获取页面验证码图片

Delphi 字符串、文件路径 排序算法

Delphi 对txt文件的操作

Delphi tfilestream 打开模式与共享模式

Delphi 提高unigui开发效率的两个方法

Delphi 中showmodal与show的区别

idtcpserver 用户掉线检测方法

Delphi文件 fileopen 、fileseek等的用法(看红色字体)

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...