FreePascal Information Logo Friend of FreePascal Compiler Title
Articles with Feedback, FPC News Library, PDF Collection, Mail Lists, Books, Newsgroups, IRC Open online discussion areas Research and Tutorials Tools, Compilers and Utilities Blurbs about us, advertising, etc.
Welcome to the FoFPC Pascal Language END

end


     The End keyword is fundamental to Pascal - it terminates statement blocks. The most common usage is:

Begin
   ... statements ...
End;


Example

    Download Source IconDownload This Source for Free Pascal
var
  i : Word;

begin
  i := 2;
  if (i<3) then begin
     case i of
       0 : Writeln('i = 0');
       1 : Writeln('i = 1');
       2 : Writeln('i = 2');
     End;
  End;
End.

Output

i = 2

See Also

Begin, Case, Library, Program, Try, Type, Unit.
 Links and Products we find useful



ButtonGenerator.com
Valid XHTML 1.0 Transitional Internet Map
Programmer's Heaven
grat-i-fi-ca-tion - noun
the state of being gratified; great satisfaction.


"Wow! We are so pleased to see Friends of FreePascal Compiler ... with such a cool look and feel!"

"We like the fact you wrote all of the server scripts using FPC!"

Ian Wright
Codemasters
Locations of visitors to this page world map hits counter
Copyright 2009 by 3F, LLC. All rights reserved. Worldwide.
Your request was processed by server #3 in 0.003543 secs.

sponsor
This sponsor helps us with our documentation