Autor Beitrag
Andre :-)
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.02.03 22:54 
Hallo,

gibt es irgendwie die Möglichkeit, ohne Schleife, zu prüfen ob ein Wert X in einer vorher geladenen StringList ist?

Ich möchte während einer Schleife prüfen ob der Wert Ascii ist, oder nicht. Und in der Liste will ich vorher alle Extensions, die ascii sein können laden.

Wäre schön, wenn mir damit jemand helfen könnte.

Danke
Andre

Moderiert von user profile iconTino: Absätze entfernt.

_________________
Security is just a feeling, but never reality
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 13.02.03 22:56 
IndexOf -> s. Hilfe zu TStringList.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Do 13.02.03 22:58 
Hallo

schau dir mal Indexof an. ansonsten wirst du um eine schleife nicht drumrumkommen (z.B. um einzelne Teilstrings in den Items zu suchen -> POS verwenden)

edit: zu langsam

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Andre :-) Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.02.03 23:06 
He Klasse,
vielen Dank. Werde ich gleich mal ausprobieren.

:P

_________________
Security is just a feeling, but never reality