Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement