The keyword begin is used to indicate the start of the executable section of a FUNCTION, method of an OBJECT, PROCEDURE, PROGRAM, property of an object, or is used to delineate the start of a block statement.
For a function, method, procedure, program, or property, it is used after all CONST, TYPE and VAR declarations, and before the first executable statement. It is always terminated by an END statement:
For a block statement, it delineates the top of the block, and is also terminated by an END statement:
A begin must be closed with end.
Keywords: begin — do — else — end — for — if — repeat — then — until — while
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.