Hi E.C.
> I place a code at init method of the form to creat a array eg.
>
>DIME puric(1,1)
>SELECT userid,name FROM users ;
>INTO ARRAY puric
>
>Then at the form, I have a combo box, record source = puric, and source type = array.
>
>The problem is when the form fire 1st time, system give me a error msg the :puric is not an array.
>
>Why?
>
>Thank in advance.
Because the array puric is scoped to the form's Init method. If you require the array to be in scope for other objects on the form, you need to make it a property of the form. To do this, select Form -> New Property from the menu when you are in the form designer. Call the property aPuric[1]. The [1] is required in the property name to make it an array. Then, in the form's init, you can issue the SELECT into ARRY Thisform.apuric. And don't forget to issue a Combo.Requery() after you create the array.
Set the combo's RowSource up as Thisform.aPuric
Marcia
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