Finally
From Free Pascal wiki
Revision as of 13:16, 1 October 2018 by Djzepi (talk | contribs) (Created page with "{{Finally}} The Reserved word '''finally''' identifies the block that should always be processed, regardless of whether an error has occurred or not. Example: <syntaxhig...")
│
Deutsch (de) │
English (en) │
suomi (fi) │
The Reserved word finally identifies the block that should always be processed, regardless of whether an error has occurred or not.
Example:
begin
...
try
... // Action
finally
... // Final work, which should be done even in case of error
end;
...
end;
Example (in this example, the finally block is always executed)::
begin
...
try
try
... // instructions to check
except // error handling
...
end;
finally // always instructions to be processed
...
end;
...
end;