Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox - Additems
Message
 
À
20/02/1998 20:41:14
Dan Neuman
Builder Software
Nevada, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080245
Message ID:
00080268
Vues:
25
Dan,

You can't use AddItem for a combobox that has a rowsource. If the rowsource is a table, you would have to add a record to the table, which I'm sure you don't want to do. Instead, you could have no rowsource, SCAN the table and add each record (and the '' item) to the box using AddItem().

>This may be a simple problem for some, but not for me. I have a combobox that has a rowsource from a table. I would like to add a item, called '', which when selected from the combobox would pull up an input box for the item to add, append a record to the table, and refresh the database.
>
>I am having the hardest time trying to figure out how to add the '' item, and where to put the code to check on the selection of the combobox, to run through my append code.
>
>Any suggestions,
>Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform