Hi,
Say I have a listbox, and I have an item in there already selected/highlighted, how do I read the text?
What function do I use?
I keep typing listbox1.selected, but it keeps asking for a integer index. after, ie it wants:
listbox1.seletced[#]
But I don't know the number/index, since I can select any of the rows. Can't delphi just read the text from my highlighted row?
Thanks
EDIT: Wait I already asked this question before LOL, apparently I have already solved this. Nevermind people >__>
listbox1.items[listbox.itemindex];
//listbox.itemindex - # of selected item
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks