Autor Beitrag
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Mi 29.09.10 13:03 
Wenn ich eine Deklaration von enums mache wie:
ausblenden Delphi-Quelltext
1:
TFoo=(fZero, fOne, fTwo, FThree)					

Kann ich dann davon ausgehen, dass Delphi das mit 0-3 belegt?
Wenn nicht, wie kann ich das forcieren, ohne hinter jedes Element ein "=n" zu schreiben?
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mi 29.09.10 13:57 
user profile iconFlamefire hat folgendes geschrieben Zum zitierten Posting springen:
W
Kann ich dann davon ausgehen, dass Delphi das mit 0-3 belegt?


Ja, ist immer so, solange du keine eigenen Indizies ( = 5 oder ähnlich) verwendest.

Für diesen Beitrag haben gedankt: Flamefire