Multiselect List Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a listbox with MultiSelect option set to Extended. I have written code
to fetch the data for each selected line like this:

For Each varItem in ctl.ItemsSelected
intMaterialsID = ctl.ItemData(varItem)

The above works fine but refers only to the first column in each row. I now
want to refer to data in other columns of the selected rows. How do I do this?

TIA
Anand
 
You can use

ctl.Column(1,varItem)

It will select the second column in the list box
Note: the column number start with 0
 
Back
Top