Autor Beitrag
Delphi Champ 3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 3.11, Win 95, Win ME, Win XP, Multiubuntu
Delphi 3, Turbo Delphi Explorer 2006
BeitragVerfasst: Do 06.09.07 15:14 
Hallo,

ich wollte mit meinem Quelltext gucken, ob ein Buchstabe in einem String vor kommt. Gibt es sowas wie "is part of"?
Oder wenn man mehrere Buchstabe sucht, also Zeichenketten?

Danke :D
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.09.07 15:25 
Schau dir mal die Funktion pos an.

_________________
We are, we were and will not be.
Ramon
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 107

WIN7
D6 Prof, D7 Prof, D 2009
BeitragVerfasst: Do 06.09.07 16:07 
Zitat:
Oder wenn man mehrere Buchstabe sucht, also Zeichenketten?


Dafür schau dir mal AnsiContainsStr an.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.09.07 16:19 
Das geht auch mit pos ;-)

Kommt halt drauf an, was man genau vorhat. Das eine ignoriert Groß/kleinschreibung, das andere wieder nicht, AnsiContainsText gibts afaik auch noch...

_________________
We are, we were and will not be.
Delphi Champ 3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 3.11, Win 95, Win ME, Win XP, Multiubuntu
Delphi 3, Turbo Delphi Explorer 2006
BeitragVerfasst: Do 06.09.07 16:32 
Vielen Dank! :D
Ich habe es mit Pos gemacht :)
Klappt prima. ;)