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
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.039720058441162 seconds