Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Array Property
Message
From
18/05/2001 15:37:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00508010
Message ID:
00508949
Views:
31
>Mark,
>
>I can't do that because I need the array as a property of the control, not the form. I have been told that this is because the control inits before the form inits, and any array that is a form property won't be there when the control is created. Am I wrong on this???
>
>Ron.

If you're going to use the array as the rowsource for the combo box, it should be ok. Create the array as a property of the form at design-time. Set the rowsource of the combo box to thisform.myarray at design-time or run-time. If you set the rowsource in the init of the combo box, be sure to put quotes around thisform.myarray. (ex: this.rowsource="thisform.myarray"). Then in the init of the form, re-dimension and populate the array and refresh the combox box. I have no idea how to make an array a property of a combox box.

Hope this helps,
Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform