Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - Additems
Message
 
To
20/02/1998 20:41:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080245
Message ID:
00080268
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform