Autor Beitrag
>M@steR<
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Mo 27.08.12 16:52 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 02:58, insgesamt 1-mal bearbeitet
jfheins
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 918
Erhaltene Danke: 158

Win 10
VS 2013, VS2015
BeitragVerfasst: Mo 27.08.12 18:10 
Benutze case of als Ersatz.
ausblenden Delphi-Quelltext
1:
2:
3:
case ColorX of
  clred, clBlue, clLime: // Tuwas
end;

Wenn die Menge konstant ist und zur Compile-Zeit fest steht. Ansonsten musst du wohl ein Array und eine Schleife benutzen.

Für diesen Beitrag haben gedankt: Martok
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Mo 27.08.12 18:21 
Gelöscht