Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 12.10.03 14:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
 if edit1.text = 'chris' then
            begin
            Showmessage('Hallo');
            end
            else
             if edit1.text = 'CHRIS' then
               begin
             Showmessage('Hallo');
             end; end;

ich will das bei 'chris' eingabe egal ob groß oder klein Showmessage('Hallo') kommt.

dank
Chris (Delphi7)
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 12.10.03 14:52 
so:

ausblenden Delphi-Quelltext
1:
2:
if uppercase(edit1.text) = 'CHRIS' then
 foo;


oder charcase von edit1 auf ecUpperCase setzen
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 12.10.03 14:54 
Hi,

Das geht einfach mit der CompareText() Funktion, welche
Groß- und Kleinschreibung ignoriert.

ausblenden Delphi-Quelltext
1:
2:
 if CompareText(Edit1.Text,'Chris') = 0 then
   ShowMessage('Hallo');
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 12.10.03 15:06 
Danke für eure hilfe

Chris (Delhpi7)
Shark
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 87

98, XP
D3, D5, D7
BeitragVerfasst: So 12.10.03 23:21 
Gibt es ein Uppercase, welches Umlaute berücksichtig?