Autor Beitrag
Stoffel1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Do 12.02.04 11:40 
Hallo,

wie kann ich einer Menge (set of integer) zur Laufzeit Werte hinzufügen?
Oder kennt ihr eine bessere Möglichkeit z.B. Arrays? Es geht mir eigentlich nur um die "in" Funktionalität zur Überprüfung.

Danke, Stoffel
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Do 12.02.04 13:13 
Aus der Delphi-Hilfe:

Zitat:

procedure Include(var S: set of T; I:T);

Beschreibung

Include fügt der Menge S das Element I hinzu. S ist eine Mengenvariable. I ist ein Ausdruck eines mit dem Basistyp von S kompatiblen Datentyps.

Das Konstrukt Include(S,I) ist mit der Anwendung S := S + [I] identisch, führt jedoch zu bedeutend effizienterem Code.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Do 12.02.04 13:57 
Vielen Dank!

Sorry ich muss das übersehen haben....
Sorry.....man heut is echt nich mein Tag!
:autsch: