Difference between revisions of "Begin"

From Free Pascal wiki
Jump to navigationJump to search
m (Reverted edit of Rd27642926, changed back to last version by Nluckhurst)
(No difference)

Revision as of 20:43, 8 March 2006

keyword which starts a program:

 program Project1;
 var(..);
 begin
   (..);
 end.

Or a block of actions:

 if (..)then
 begin
   (..)
 end
 else
 begin
   (..)
 end;

A statement starting with begin must always be closed with the end keyword.