Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding items to the Combo box list 'on-the-fly'
Message
From
29/06/1999 09:43:02
Bill Gravell
Indoor Purification System
Menifee, California, United States
 
 
To
21/06/1999 17:44:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00232231
Message ID:
00235193
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform