End

From Lazarus wiki
Revision as of 20:48, 10 May 2006 by Rfc1394 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

keyword which closes a block of instructions started with the begin keyword, or the try .. finally or try .. except constructs.

For example:

 program Project1;
 
 var a,b: integer;
 
 begin
   (..)
 end.
 var
   SL: TStrings;
 begin
   SL := TStringlist.Create;
   try
     (..)
   finally
     SL.Free;
   end;
 end;

It is also used to end a pascal source file, in which case it is followed by a period rather than a semi-colon.



Keywords: begindoelseendforifrepeatthenuntilwhile

An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.