Autor Beitrag
Florian.K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win Xp Prof. & SP 2
Delphi 10 Lite
BeitragVerfasst: So 06.05.07 12:19 
Hi Community !

Ich programmiere mir grad nen Arbeitszeitenplan und möchte das sich
anfangs eine Inputbox öffnet wo ich den Monat eingebe.
Das ist kein Problem nur das Problem besteht darin das ich folgende Fallunterscheidung
brauche.

ausblenden Delphi-Quelltext
1:
Monat:= InputBox('Monat', 'Welchen Monat haben wir ?', 'Monat');					


Wenn Monat = Januar
dann show.GroupboxJanuar

Nur ich weis nicht wie ich den vergleich anstelle.
Eigentlich müsste das sehr simpel sein aber ich kom nech drauf : )

Danke im Voraus
Flo


Zuletzt bearbeitet von Florian.K am So 06.05.07 12:25, insgesamt 3-mal bearbeitet
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: So 06.05.07 12:22 
ausblenden Delphi-Quelltext
1:
if Monat = "Januar" then GroupBoxJanuar.Show;					

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Florian.K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win Xp Prof. & SP 2
Delphi 10 Lite
BeitragVerfasst: So 06.05.07 12:28 
[Pascal Error] Unit1.pas(204): E2038 Illegal character in input file: '"' (#$22)
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: So 06.05.07 12:30 
In die InputBox musst du Januar reinschreiben ohne " "; Monat ist ein string oder :?:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 06.05.07 12:30 
Da programmiert wohl jemand mit ner anderen Programmiersprache. Es muss natürlich ' und nicht " sein.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: So 06.05.07 12:33 
user profile iconjakobwenzel hat folgendes geschrieben:
Da programmiert wohl jemand mit ner anderen Programmiersprache. Es muss natürlich ' und nicht " sein.

:oops: Stimmt, ich programmier gerade C# und da muss man das so machen :oops:
Sorry :flehan:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Florian.K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win Xp Prof. & SP 2
Delphi 10 Lite
BeitragVerfasst: So 06.05.07 12:39 
ohje das hätte ich selber sehen müssen

Java c delphi das ist alles böse verwechselbar


Achja und danke ; )