>It's a little bit hard for me to follow all the logic in the code.
>
>>> Did you try to verify content of the array?
>Yes, All values are there and correct
>
>>>Where do you set rowsource for the combo?
>In the properties of the combobox
>
Try to do it in code after having the array filled in. E.g. this.rowsource = "thisform.myArray"
>>>Did you try requery?
>Data is from a table, so requery not applicable
>
I meant this.requery(), e.g. requery a combo.
>>> Did you try with two dimensional array?
>Array is two dimensional
Wrong choice of words from my part again, sorry. I meant, could you use two columns and not 3 in your array just for test? In other words, having numerical value as the source for combo may be a bit of a problem (it should not).
Also try this.boundto = .t.
>
>>> Did you try to comment numberofelements line?
>I had not, but now have, errors before that on
>
>THIS.ListIndex=1
>
>
I think the problem is with setting combo's rowsource in design time. Try it in run-time and see, if it helps.
If it's not broken, fix it until it is.
My Blog