Autor Beitrag
Grinarn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mo 24.09.07 23:42 
Moin,

ich suche eine Möglichkeit für mein Get-Procedur, den aktuell markierten Eintrag einer Listbox an eine andere Unit zu übergeben. Leider finde ich nirgends eine Möglichkeit den String des aktiven Elements auszulesen.
Gibt es irgendwas wie:

stringvariable := Listbox.methode ???

Gruß Grinarn
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 24.09.07 23:49 
Moin!

TListBox.ItemIndex liefert dir den Index des aktuell markierten Eintrags. Mit TListBox.Items.Strings[i] kannst auf auf das i-te Element des Listbox (als Text) zugreifen. Jetzt musst du das nur noch kombinieren. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Grinarn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mo 24.09.07 23:59 
Was würde ich nur ohne dich anstellen Narses :oops:

Gruß Grinarn
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Di 25.09.07 09:08 
user profile iconGrinarn hat folgendes geschrieben:
Was würde ich nur ohne dich anstellen Narses :oops:

Gruß Grinarn


OT: Auf die Antwort von anderen warten :P

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.