>* 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.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.