Do/fr: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 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]]. | |
| 6 | 2 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 3 | + | Ce mot clé ouvre le code associé à la construction visée. | |
| 11 | 4 | ||
| 12 | 5 | ## for ... to ... do | |
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | 6 | ||
| 7 | + | ` for i := 1 to 10 do ...` | |
| 8 | + | ||
| 17 | 9 | ## try ... except on ... do ... end | |
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 26 | 10 | ||
| 11 | + | ` try`\ | |
| 12 | + | ` ...`\ | |
| 13 | + | ` except`\ | |
| 14 | + | ` on E:Exception do`\ | |
| 15 | + | ` ....`\ | |
| 16 | + | ` end;` | |
| 17 | + | ||
| 27 | 18 | ## wile ... do | |
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | 19 | ||
| 20 | + | ` while a>b do ...` | |
| 21 | + | ||
| 32 | 22 | ## with do | |
| 33 | - | ||
| 34 | - | ||
| 35 | - | ||
| 36 | 23 | ||
| 37 | - | ||
| 38 | - | ||
| 24 | + | ` with A do ...` | |
| 39 | 25 | ||
| 40 | 26 | --- | |
| 41 | - | ||
| 27 | + | *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 | + | Category: Control Structures/fr | |
| 29 | + | Category: Pascal/fr |
