DelphiBasics
End
Keyword
Keyword that terminates statement blocks
 keyword End(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
BeginKeyword that starts a statement block
CaseA mechanism for acting upon different values of an Ordinal
ProgramDefines the start of an application
TryStarts code that has error trapping
TypeDefines a new category of variable or process
UnitDefines the start of a unit file - a Delphi module
 Download this web site as a Windows program.




 
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
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page