assigning a multi-dimensional array to a combobox.List??? withoutloops

  • Thread starter Thread starter arafael
  • Start date Start date
A

arafael

Why is this working?

I have a combobox cbBox and an array say arr(1 to 10, 1 to 5).

This seems to work but I was wondering if anyone had encountered this
yet.

If I say
cbBox.List = arr

it will display the elements along the first dimension.

But if you check cbBox.List is a 2-d array(0 to 9, 0 to 4)

Is there any documentation that shows that this usage is fine?

Thanks
 
It is fine. You can show those extra columns by changing the ColumnCount
property of the combobox. Even if you don't the data is still there, and you
can access it, it just doesn't show.
 
It is fine. You can show those extra columns by changing the ColumnCount
property of the combobox. Even if you don't the data is still there, and you
can  access it, it just doesn't show.

--
__________________________________
HTH

Bob













- Show quoted text -

Thank you!
 

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

Back
Top