Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox RowSource Not Found Why
Message
De
19/06/1998 13:12:03
 
 
À
18/06/1998 23:27:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00109784
Message ID:
00109975
Vues:
23
>* Ary was declared as a PROPERTY
>* when building this class.
>DECLARE this.ary[_tally+1,2]
>this.ary[_tally+1,1]=' '
>this.ary[_tally+1,2]=' '
>
>WITH THIS
> .ROWSOURCETYPE =5 && Array
> .ROWSROUCE ='THIS.ARY' <--- CRASH
> .BOUNDCOLUMN =2
> .COLUMNCOUNT =ALEN(this.ary,2)
> .NUMBEROFELEMENTS=ALEN(this.ary,1)
>ENDWITH
>
>In the INIT of the combobox,
>the program crashes and tells
>me :
> RowSource is Not Found
>
>Why is it not finding
> .ROWSROUCE ='THIS.ARY'
>
>I also tried (no quotes)
> .ROWSROUCE =THIS.ARY

Gene,

Your code ought to work. I define array properties in combo and listbox classes all the time to use as rowsources. The only thing I can think of is that you misspelled "rowsource" as "rowsrouce". If this is how its spelled in your code, you will certainly get some kind of error message.

I don't think you need to define numberofelements. When you set the rowsource, the number of elements is automatically set to the number of rows in the array.

Please let me know if you have not figured it out. I will send some code that I know works.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform