Place all code in the init event of the form:
SELECT userid,name FROM users ;
INTO ARRAY puric
This.ComboBox1.RowSourceType = 5
This.ComboBox1.RowSource = "puric"
I am not sure of it behaves 100%.
Why not using SQL as RowSourceType property instead of an ARRAY. With SQL, you can Requery the Combobox which is necessary especially if the data content is dynamic.
>I place a code at init method of the form to creat a array eg.
>
>
>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.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."