Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding items to the Combo box list 'on-the-fly'
Message
De
29/06/1999 09:43:02
Bill Gravell
Indoor Purification System
Menifee, Californie, États-Unis
 
 
À
21/06/1999 17:44:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00232231
Message ID:
00235193
Vues:
21
>Here is the senario:
>
>I wish to have a combo box (ie Vendor Type) come up with a list of available Vendor Types, however if the user wishes to add a new type they would be able to type it in and it would be added to the list (appended to the vendor type table).
>
>The combo box is based on the table: v_type
>Fields:
>vtyp_cd (code)
>vtype_nm (name)
>
>Can anyone help?
>additional email: davidm@orcatec.com

I've done this. If the .value is not equal to the .displayvalue, then the text typed in is a new entry. Based on that, you can take the displayvalue and use it as the data to append to your vendor type table. Don't forget to make .value equal to .displayvalue when you finish.

HTH,

Bill
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform