Difference between revisions of "End"
From Free Pascal wiki
Jump to navigationJump to search(No difference)
|
Revision as of 20:48, 10 May 2006
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: begin — do — else — end — for — if — repeat — then — until — while