Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box with record source type = array
Message
 
À
17/07/2000 22:54:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00393629
Message ID:
00393646
Vues:
21
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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform