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...") |
m (Fixed syntax highlighting; deleted category included in page template) |
||
Line 2: | Line 2: | ||
'''Goto''' est un saut inconditionnel vers une [[Label/fr|étiquette]] précédemment déclarée (soit avant soit après la commande goto). | '''Goto''' est un saut inconditionnel vers une [[Label/fr|é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 : | Exemple de déclaration d'une étiquette et d'emploi de goto : | ||
− | + | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
var | var | ||
fWaterIsBoiling: Boolean; | fWaterIsBoiling: Boolean; | ||
Line 20: | Line 20: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 12:53, 16 February 2020
│
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;