delphi 里try expect 语句 是什么意思
来源:百度知道 编辑:UC知道 时间:2024/05/28 07:42:15
delphi 里try expect 语句 是什么意思
try
如果有错
except
就执行这里
end
try
不管有没有错
finally
都要执行这里
end
异常处理的内容。
try
...
except
...
end;
try...except之间是执行正常逻辑,except...end之间执行的是如果try...except之间的语句出错了该如何处理。
比如你读取文件的时候,你不知道文件是否存在,如果不用try...except程序会直接报错,使用except后就可以定义如果出错了该如何处理。
网上资料应该还蛮多的,LZ找一下吧。
at last no one want to try again expect
don't try so hard, the best things come when you least expect them to
Don‘t try so hard, the best things come when you least expect them to.
Do not try so hard, the best things come when you least expect them to
Thanks~ ~ Don‘t try so hard , the best things come when you least expect them to.
Don't try so hard, the best things come when you least expect them to!!!
Don‘t try so hard, the best things come when you lest expect them to.
Do not try so hard The best things come When you leave expect them to 翻译
Don't try so hard, the best things come when you least expect them to.
delphi中如何用try...except处理异常