Sign in Join
Wiki copytemporary

Begin/fr

Deutsch · English · Español · Français · Suomi · Русский · 中文(中国)

Le mot-clé begin est employé pour indiquer le début d'un section exécutable d'une fonction, d'une méthode d'un objet, d'une procédure, d'un programme, propriété d'un objet, ou est utilisé pour délimiter le début d'un bloc d'instruction.

Pour une fonction, une méthode, un programme ou une propriété, il est utilisé après toutes les déclarations const, type and var, et avant la première instruction exécutable. Le bloc ainsi commencé est toutjours temriné par une instruction end.

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

Pour un bloc d'instructions, il délimite le début du bloc et est aussi terminé par une intruction end:

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

Un begin doit être fermé par un end.


From the Free Pascal wiki, page "Begin/fr", as it stood on 2020-01-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.