Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text entered in text box portion of combo lost
Message
 
To
08/11/2000 09:57:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00439223
Message ID:
00439244
Views:
22
Oh, I see. If your RowSource is a comma delimited list of values, you could try this:

** Combo.Valid()
IF NOT This.Value $ This.RowSource
cOldValue = This.DisplayValue
This.RowSource = THis.Rowsource + "," + ALLTRIM(cOldValue)
This.Requery()
This.Value = cOldValue
ENDIF

** Combo.Refresh()
DODEFAULT()
IF NOT This.Value $ This.RowSource
cOldValue = This.Value
This.RowSource = THis.Rowsource + "," + ALLTRIM(cOldValue)
This.Requery()
This.Value = cOldValue
ENDIF

Let me know if this is what you were talking about.

Marty



>>Hi Sorin,
>>
>>See FAQ #7643.
>>
>>M.
>
>The solution in FAQ 176 is not going to help when somebody comes back to this record at a future time. It will just show empty even if there is smth in the field. And I'm not prepared at this point to make anything anybody might enter in the text box a permanent value of the combo list. The list of values that are hard coded is just a list of values COMMONLY used and having them in th elist saves the user's time.
Marty Smith, CSQE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform