Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help me understand dropdown combo's
Message
De
07/04/1998 13:43:48
 
 
À
07/04/1998 13:34:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00090213
Message ID:
00090218
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform