Difference between revisions of "End/de"
From Lazarus wiki
Jump to navigationJump to searchm (Fixed syntax highlighting; deleted category included in page template) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
<br> | <br> | ||
Das reservierte Wort '''end''' schliesst:<br> | Das reservierte Wort '''end''' schliesst:<br> | ||
− | * | + | * Einen Anweisungsblock der mit [[Begin/de|begin]] anfängt. |
− | * | + | * Einen Entscheidungsblock der mit [[Case/de|case]] anfängt. |
− | * | + | * Eine [[Record/de|Recorddeklaration]]. |
− | * | + | * Eine [[Object/de|Objectdeklaration]]. |
+ | * Eine [[Class/de|Classendeklaration]]. | ||
+ | * Einen [[Try/de|try ... finally]] oder [[Try/de|try ... except]] Block. | ||
+ | * Ein [[Asm/de|asm]] Block. | ||
<br> | <br> | ||
− | Beispiel:<br> | + | Beispiel '''begin''':<br> |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
... | ... | ||
begin | begin | ||
Line 18: | Line 21: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
− | Beispiel:<br> | + | Beispiel '''case''':<br> |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
... | ... | ||
case ... of | case ... of | ||
Line 27: | Line 30: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
− | Beispiel:<br> | + | Beispiel '''record''':<br> |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
... | ... | ||
type TDaten = record | type TDaten = record | ||
Line 36: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
− | Beispiel:<br> | + | Beispiel '''object''':<br> |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
+ | ... | ||
+ | type TDaten = object | ||
+ | ... | ||
+ | end; | ||
+ | ... | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | Beispiel '''class''':<br> | ||
+ | <syntaxhighlight lang=pascal> | ||
+ | ... | ||
+ | type TDaten = class(TObject) | ||
+ | ... | ||
+ | end; | ||
+ | ... | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | Beispiel '''Try-Finally''':<br> | ||
+ | <syntaxhighlight lang=pascal> | ||
... | ... | ||
try | try | ||
Line 47: | Line 68: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
− | Beispiel Try-Except:<br> | + | Beispiel '''Try-Except''':<br> |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
... | ... | ||
try | try | ||
Line 58: | Line 79: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
− | <br> | + | Beispiel '''asm''':<br> |
− | + | <syntaxhighlight lang=pascal> | |
− | + | ... | |
+ | asm | ||
+ | ... | ||
+ | end; | ||
+ | ... | ||
+ | </syntaxhighlight> |
Latest revision as of 08:47, 14 February 2020
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
Zurück zu den reservierten Wörtern.
Das reservierte Wort end schliesst:
- Einen Anweisungsblock der mit begin anfängt.
- Einen Entscheidungsblock der mit case anfängt.
- Eine Recorddeklaration.
- Eine Objectdeklaration.
- Eine Classendeklaration.
- Einen try ... finally oder try ... except Block.
- Ein asm Block.
Beispiel begin:
...
begin
...
end;
...
Beispiel case:
...
case ... of
...
end;
...
Beispiel record:
...
type TDaten = record
...
end;
...
Beispiel object:
...
type TDaten = object
...
end;
...
Beispiel class:
...
type TDaten = class(TObject)
...
end;
...
Beispiel Try-Finally:
...
try
...
finally
...
end;
...
Beispiel Try-Except:
...
try
...
except
...
end;
...
Beispiel asm:
...
asm
...
end;
...