Until/fr

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Deutsch (de) English (en) français (fr) русский (ru)

Ce mot-clé est utilisé dans la structure de contrôle Repeat qui est similaire aux boucles While ou For.

Syntax:

 repeat
   <statement block>
 until <condition>;

<statement block>: Une unique instruction Pascal ou un bloc d'instruction begin-end.

<condition>: Expression qui retourne une valeur booléenne.

Exemple:

 x := 1;
 repeat
 begin
   DoSomethingHere(x);
   x := x + 1;
 end;
 until x = 10;



Mots-clés: begindoelseendforifrepeatthenuntilwhile