Difference between revisions of "Goto/fr"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "{{goto}} '''Goto''' est un saut inconditionnel vers une étiquette précédemment déclarée (soit avant soit après la commande goto). <br> Exemple de déclara...")
(No difference)

Revision as of 23:54, 1 November 2016

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

Goto est un saut inconditionnel vers une étiquette précédemment déclarée (soit avant soit après la commande goto).
Exemple de déclaration d'une étiquette et d'emploi de goto :

var
  fWaterIsBoiling: Boolean;
 
label
  SwitchOffKettle;
 
begin
  ...
  if fWaterIsBoiling = True then Goto SwitchOffKettle;
  ...
SwitchOffKettle:
  ...
end;