Information générale
Catégorie:
Codage, syntaxe et commandes
There certainly doesn't appear to be anything wrong with the code you posted below. There must be something else going on in the form or the combo box that's causing it. Is there much other code in either? What events have code in them?
Alan
>Hi Jim
>Init of form:
>------------
>Dime Thisform.MyArray(3,2)
>Thisform.Myarray[1,1] = 'Plum'
>Thisform.Myarray[2,1] = 'Apple'
>Thisform.Myarray[3,1] = 'Pear'
>
>Thisform.Myarray[1,2] = 'Munster'
>Thisform.Myarray[2,2] = 'Ulster'
>Thisform.Myarray[3,2] = 'Leinster'
>
>Thisform.Combo2.requery()
>
>Row Source
>----------
>Thisform.MyArray
>
>
>Row source type
>---------------
>5 array
>
>
>As I said in earlier thread, this combo box works fine on another blank form, but not on my live one.. it must be something on the form or class
>
>regards,
>
>Gerard
>
>
>
>
>>Gerard,
>>
>>Ok let's debug this. What are the rowsourcetype and rowsource settings for the combo? Also what is the code that "initializes" the form array? Is there a pageframe involved?
Précédent
Suivant
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