Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Filled Combo
Message
From
22/11/1999 10:43:03
 
 
To
22/11/1999 10:24:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00293857
Message ID:
00293913
Views:
39
Hi Marcia,

I put the code in the valid and ran the form but it didn't take. When the combo loses focus, the typed entry disappears. does the builder need to be set to anything in particular?

>Hi Jimmy.
>
>>> Does anyone know how to set up a combo that a user can add choices to? <<
>
>First of all, you need to make sure that the style of the combo is 0-DropDown Combo. Then you need to take some action in the combo's valid to check to see if the user typed in something new and then take action to add it to the combo's RowSource with code similar to this:
>
>
>WITH This
>  IF .ListIndex = 0 AND !EMPTY( .DisplayValue )
>     *** The user typed in an entry not in the list
>     *** code here to add the new entry to the combo's RowSource
>     .Requery()
>     .Refresh()
>  ENDIF
>ENDWITH
>
>
>Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform