In/de
Zurück zu den reservierten Wörtern.
Das reservierte Wort in dient der Verarbeitung von Mengen.
Das reservierte Wort in prüft, ob ein Ausdruck in einer Menge vorkommt.
Beispiel:
var
blnX: Boolean;
begin
...
blnX := 2 in [0..50];
...
end;Beispiel:
var
chrX: Char;
begin
...
repeat
...
chrX := ...
...
until chrX in ['A', 'B', 'C']; // Die Schleife wird beendet, wenn die Bedingung Wahr ist.
// Das heisst, wenn der Wert in der Variablen chrX in der Menge ['A', 'B', 'C'] vorkommt,
// dann ist die Bedingung erfüllt.
...
end;From the Free Pascal wiki, page "In/de", as it stood on 2020-04-07 after a change by Mathias, 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.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
