Autor Beitrag
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mi 12.09.07 09:56 
Hey jungs,

ich weiß ihr seit diese Anfängerfragen langsam leid aber...
ich hab heute mal weiter weitergelert an Delphi.
Bin mittlerweile bei case angekommen.
jetzt ist meine frage : case fängt ja wie folgt an ;

case xx of

x: anweisung1;
y: anweisung2;

meine Frage ist was muss für das "xx" stehen zwischen case und of

danke

GericasS :D
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 12.09.07 09:59 
Die Variable

_________________
Markus Kinzler.
ene
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 779
Erhaltene Danke: 1

Vista, XP, W2K
Delphi, .Net, Deutsch und Englisch
BeitragVerfasst: Mi 12.09.07 10:01 
Und dort können leider nur ganze Zahlen verarbeitet werden :(

_________________
Wir, die guten Willens sind, geführt von Ahnungslosen, Versuchen für die Undankbaren das Unmögliche zu vollbringen.
Wir haben soviel mit so wenig so lange versucht, daß wir jetzt qualifiziert sind, fast alles mit Nichts zu bewerkstelligen.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 12.09.07 10:06 
Nicht ganz korrekt, ausser ganzen Zahlen kann noch jeder Ordnialtyp verwendet werden, also z.B. auch Aufzählungstypen.

_________________
Bravery calls my name in the sound of the wind in the night...
GericasS Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mi 12.09.07 10:08 
user profile iconnoidic hat folgendes geschrieben:
Nicht ganz korrekt, ausser ganzen Zahlen kann noch jeder Ordnialtyp verwendet werden, also z.B. auch Aufzählungstypen.


genau das hab ich auch gelesen !

also dann deklariere ich meine Variable z.B i dahinter dann Integer ?
ene
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 779
Erhaltene Danke: 1

Vista, XP, W2K
Delphi, .Net, Deutsch und Englisch
BeitragVerfasst: Mi 12.09.07 10:30 
Ja.

_________________
Wir, die guten Willens sind, geführt von Ahnungslosen, Versuchen für die Undankbaren das Unmögliche zu vollbringen.
Wir haben soviel mit so wenig so lange versucht, daß wir jetzt qualifiziert sind, fast alles mit Nichts zu bewerkstelligen.
GericasS Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mi 12.09.07 10:44 
user profile iconene hat folgendes geschrieben:
Ja.


danke !
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 12.09.07 12:38 
kann man nicht auch variablen vom typ char verwenden??

lg elundril
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mi 12.09.07 12:40 
Das ist ein Ordinaltyp.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 12.09.07 12:44 
:oops: ohh. ok. alles klar. bin schon ruhig! :)
wieder was dazugelernt.

lg elundril