Do/fr: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Do est un [[Keyword/fr|mot-clé]] qui apparaît dans les constructions [[For/fr|for]], [[Try/fr|try]], [[While/fr|while]] et [[With/fr|with]]. | |
| 2 | 2 | ||
| 3 | 3 | Ce mot clé ouvre le code associé à la construction visée. | |
| 4 | 4 | ||
| 5 | 5 | ## for ... to ... do | |
| 6 | 6 | ||
| 7 | - | ||
| 7 | + | ``` pascal | |
| 8 | + | for i := 1 to 10 do ... | |
| 9 | + | ``` | |
| 8 | 10 | ||
| 9 | 11 | ## try ... except on ... do ... end | |
| 10 | 12 | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 13 | + | ``` pascal | |
| 14 | + | try | |
| 15 | + | ... | |
| 16 | + | except | |
| 17 | + | on E:Exception do | |
| 18 | + | .... | |
| 19 | + | end; | |
| 20 | + | ``` | |
| 17 | 21 | ||
| 18 | 22 | ## wile ... do | |
| 19 | 23 | ||
| 20 | - | ||
| 24 | + | ```text | |
| 25 | + | while a>b do ... | |
| 26 | + | ``` | |
| 21 | 27 | ||
| 22 | 28 | ## with do | |
| 23 | 29 | ||
| 24 | - | ||
| 30 | + | ```text | |
| 31 | + | with A do ... | |
| 32 | + | ``` | |
| 25 | 33 | ||
| 26 | 34 | --- | |
| 27 | 35 | *From the Free Pascal wiki, page "Do/fr", as it stood on 2016-11-03 after a change by E-ric, 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](/wiki-contact).* | |
| 28 | 36 | Category: Control Structures/fr | |
| 29 | 37 | Category: Pascal/fr |
