Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not an Array Error 1st Time
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00261208
Message ID:
00261245
Views:
18
Hi Steve,

The form's Init method, where your array is created, is fired too late. The combobox has already been instanciated and looks for the arFillCombo array before the form's Init. If you want to check for yourself, just put a MessageBox() right before you create your array in the form's init and you'll receive your error message before the message box.

Like Fred and Doug, I recommend using a form's property, but if you insist on using a public variable, create and fill it in the load method of the form.

Hope this helps!

>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).
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform