Autor Beitrag
ralfi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 153



BeitragVerfasst: Do 19.02.04 12:47 
Hallo!

Ich prüffe, ob sich einen bestimmten Wort in einem String befindet:

ausblenden Quelltext
1:
2:
pos (edit1.text, memo1.text) > 0 then
...


Wenn das Wort der im Edit1 steht klein geschrieben wurde und im Memo1 groß, meldet pos, dass nichts gefunden wurde...

Kann ich irgendwie suchen, ohne die große und kleine Buchstaben zu unterscheiden???

Danke!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 19.02.04 13:01 
Konvertier vorher beides in Groß- oder Kleinbuchstaben.
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Do 19.02.04 13:01 
Du wandelst mittels UpperCase oder LowerCase alle Zeichen der beiden Strings in eine gemeinsame Schreibweise um.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Do 19.02.04 13:47 
Oder anders ausgedrückt:

ausblenden Delphi-Quelltext
1:
pos (LowerCase(edit1.text),LowerCase(memo1.text)) > 0 then					

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
Brueggendiek
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 304

Win 98, Win98SE, Win XP Home
D5 Std
BeitragVerfasst: Do 19.02.04 20:18 
Hallo!

Nimm lieber "AnsiUpperCase" oder "AnsiLowerCase" - weil da werden dann auch die Umläutchen richtig gewandelt!

Gruß

Dietmar Brüggendiek