SmartPascal
End
Keyword
Keyword that terminates statement blocks
  asm     ... end;
  begin   ... end;
  case    ... end;
  library ... end;
  package ... end;
  program ... end;
  try     ... end;
  type    ... end;
  unit    ... end. // Note terminating dot
Description
The End keyword is fundamental to Delphi - it terminates statement blocks.
 
The most common is :
 
Begin
??... statements ...
End;
Related commands
Begin Keyword that starts a statement block
Case A mechanism for acting upon different values of an Ordinal
Program Defines the start of an application
Try Starts code that has error trapping
Type Defines a new category of variable or process
Unit Defines the start of a unit file - a Delphi module
 
Example code : Some examples of the end clause
var
  i : Integer;

begin
  i := 2;

  case i of
    0 : Showmessage('i = 0');
    1 : Showmessage('i = 1');
    2 : Showmessage('i = 2');
  End;
End;
Show full unit code
   i = 2