>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.
Your array is being released as soon as the INIT code is finished.
Make the array a property of your form, then it'll exist throughout the life of the form itself.
i.e.
1) Select the PROPERTY option from the FORM menu
2) For the property name, put puric(1)
3) The rest is the same as you have now, except always refer to the array as THISFORM.puric