Selecting value from listbox

Matthys

Registered User.
Local time
Today, 22:57
Joined
Mar 10, 2006
Messages
11
Hi,

I have a two column listbox, list1.
How do I save the data on the 2nd column of the selected row?

To save data from the 1st column I do:

myData = list1.itemData(list1.listIndex)

Now for the 2nd column???:confused:

Why are lists so complicated?:mad:
 
Use the Column property. It is a zero based index so the 2nd column would be: myData1 = list1.Column(1)
 
Getting the index

Ok, thanx that worked.

Now say I have the value of a certain column in a certain row, how do i find the index of that row? Assuming that all rows are unique.

Sorry I'm dumbfounded by lists.:o
 

Users who are viewing this thread

Back
Top Bottom