Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a user entry into a combobox
Message
From
22/07/2001 23:33:25
 
 
To
22/07/2001 23:13:54
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00533751
Message ID:
00533755
Views:
33
>Hi all:
>
>I currently have a drop-down combobox with the RowSourcetype set to Value and the Rowsource with values (Name1,Name2,Name3).
>
>In the event that a user's desired choice is not existing in the drop-down combo, I would like to allow the user to enter a value, then add it to the drop-down combo permanently. How can this be achieved.

In rough terms, in the valid:

IF THIS.DISPLAYVALUE <> THIS.VALUE .AND. !EMPTY( THIS.DISPLAYVALUE )
*!* Do what ever you need to add the new value. If it's a customer,
*!* for example, you might need to start a detail form.
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform