Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Combo boxes in Grids
Message
De
20/08/1999 22:26:11
 
 
À
20/08/1999 22:11:20
Frank Su
NOVAtime Technology, Inc.
Monterey Park, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00256177
Message ID:
00256182
Vues:
19
Hi Frank,

>Can I use a ComboBox where the Combobox.RowSource changes depending on which row I'm on?

I would suggest that your table have either 1 more field ( a memo with every line being an option), or you use another table ( 2 character fields, value and option). For the first method: Set your combos rowsource as an array (aitems), and in the combos gfotfocus
alines(this.aitems, table.optionsfld)
For the second method, the combo should be a SQL statement
select options.option from options where option.value = MyTable.Myfield &&Wherever Dog or Cat is stored
then requery it. You will probably need to tweak this code quite abit. THese are just ideas.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform