Multiselect List Box

A

Anand

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
 
O

Ofer Cohen

You can use

ctl.Column(1,varItem)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top