Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box with record source type = array
Message
 
 
To
17/07/2000 22:54:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00393629
Message ID:
00393646
Views:
18
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."
Previous
Reply
Map
View

Click here to load this message in the networking platform