Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 24.03.06 19:02 
Hi, Delpher,

wie kann ich in eine bestimmte Listboxzeile springen, nämlich in die Zeile, wo ein bestimmtes Wort vorkommt?

mit Listbox1.itemindex := 15; geht es natürlich statisch,

aber wie geht es "dynamisch?

Habe es versucht mit
Listbox1.itemindex := pos('BUCHSTAMM', listbox1.items[listbox1.itemindex]);

aber das funzt nicht!

Wer kann helfen?

Vielen Dank sagt
Detlef A.
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Fr 24.03.06 19:09 
das zauberwort heißt Items.IndexOf

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 24.03.06 19:09 
Versuch's mal mit der Methode .IndexOf

_________________
Markus Kinzler.
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 25.03.06 08:04 
Hallo, ihr zwei,

danke für eure übereinstimmende Hilfestellung!

Grüße aus Lübeck,
Detlef A.