Do/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Do/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Do est un [[Keyword/fr|mot-clé]] qui apparaît dans les constructions [[For/fr|for]], [try](</index.php?title=Try/fr&action=edit&redlink=1> "Try/fr \(page does not exist\)"), [[While/fr|while]] et [with](</index.php?title=With/fr&action=edit&redlink=1> "With/fr \(page does not exist\)"). | |
| 2 | + | ||
| 3 | + | Ce mot clé ouvre le code associé à la construction visée. | |
| 4 | + | ||
| 5 | + | ## Contents | |
| 6 | + | ||
| 7 | + | * 1 for ... to ... do | |
| 8 | + | * 2 try ... except on ... do ... end | |
| 9 | + | * 3 wile ... do | |
| 10 | + | * 4 with do | |
| 11 | + | ||
| 12 | + | ## for ... to ... do | |
| 13 | + | ``` | |
| 14 | + | for i := 1 to 10 do ... | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | ## try ... except on ... do ... end | |
| 18 | + | ``` | |
| 19 | + | try | |
| 20 | + | ... | |
| 21 | + | except | |
| 22 | + | on E:Exception do | |
| 23 | + | .... | |
| 24 | + | end; | |
| 25 | + | ``` | |
| 26 | + | ||
| 27 | + | ## wile ... do | |
| 28 | + | ``` | |
| 29 | + | while a>b do ... | |
| 30 | + | ``` | |
| 31 | + | ||
| 32 | + | ## with do | |
| 33 | + | ``` | |
| 34 | + | with A do ... | |
| 35 | + | ``` | |
| 36 | + | ||
| 37 | + | ||
| 38 | + | **Mots-clés:** [[Begin/fr|begin]] — do — [[Else/fr|else]] — [[End/fr|end]] — [[For/fr|for]] — [[If/fr|if]] — [[Repeat/fr|repeat]] — [[Then/fr|then]] — [[Until/fr|until]] — [[While/fr|while]] | |
| 39 | + | ||
| 40 | + | --- | |
| 41 | + | *From the Free Pascal wiki, page "Do/fr", as the Internet Archive kept it on 2025-02-16. 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](/wiki-contact).* |
