delphi中Abort和Exit的实际用法

来源:互联网 发布:横向样本统计指标源码 编辑:程序博客网 时间:2024/05/17 03:21
Exit退出过程或函数

abort程序终止执行

比如
function test():integer;
begin
 abort;//
end;
function call():integer;
begin
  test();//这里调用Test,将不会执行SHOWMESSAGE这个对话框
  showmessage('abc');
end;
---------------------------------
function test():integer;
begin
 exit;//
end;
function call():integer;
begin
  test();//这里调用Test,将会执行SHOWMESSAGE这个对话框
  showmessage('abc');
end;
0 0
原创粉丝点击