Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help me understand dropdown combo's
Message
From
07/04/1998 13:43:48
 
 
To
07/04/1998 13:34:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00090213
Message ID:
00090218
Views:
22
>I have never really gotten a dropdown combo to work correctly when the user enters something other than selecting what's in the list. I have a dropdown comboa with .controlsource=Job_Info.Quoted_By and it is populated by a comma delimited list of employee names, but I want to be able to enter something not in the list. When you enter you own text, it doesn't appear in the list, and I can't get it to save the info to the table.
>
>Please help.

When you enter something into text portion of combo you actually populate Combo.DisplayValue property. The next step you have to add (if you want) this entry to the list portion (rowsource) programmatically, e.g.
***Combo.Lostfocus event
if this.displayvalue<>this.value
 Insert into table1 Values(...)   && table1 is rowsource
 This.requery
endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform