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:
00261216
Views:
26
Hi Steve.

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

Is the array a property of the form? If not, it likely should be. You can created it using the New Property dialog and specify arFillCombo[1] as the name (the [1] is important so VFP sees the property as an array). Then, change the RowSource of the combobox to Thisform.arFillCombo and in the Init method of the form, change all references to arFillCombo to This.arFillCombo. Don't forget to use This.[combobox name].Requery() after filling the array.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform