General information
Category:
Forms & Form designer
>Using VFP6/SP3.
>In my form's init method, I create a 4x3 array and fill it with values. The array is used to populate a combobox (boundto=.f., rowsource = arFillCombo, rowsourcetype = 5 - array, all these were defined visually in the form designer).
>
>The first time the thing is run I get an error 'arFillCombo' is not an array. I click [OK] and the combobox is not populated. I click my form's [EXIT] button and I get the error 3 more times.
>
>If I run the form again, the combobox is populated and the form works fine. I can't seem to trap this error.
>
>Any suggestions?
Steve
Are you setting the properties of the combo from the init of the form at runtime? Or have you set them manually? If the later you should remember that the INITs for all the controls on the form run before the INIT of the form.
Mace
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only