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

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
 
B

Bob Phillips

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.
 
A

arafael

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!
 
Top