General information
Category:
Forms & Form designer
>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
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