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 |
|
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 |
|
|