3.10 try..Finally
try..finally similar with try..except. just different in writting and try..finally will execute the list of statements , whether there are errors or not.
sintax :
<code>
try
<listofstatements1>;
finally
<listofstatements1>;
end;
</code>
examples try..finally
<code>
Reset(F);
try
...//proces file F
finally
CloseFile(F);
end;
</code>
No comments:
Post a Comment