Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text entered in text box portion of combo lost
Message
 
To
09/11/2000 09:25:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00439223
Message ID:
00439627
Views:
19
Notice that I also sent you code for the REFRESH method of the combo box. That fixes the blank problem when the combo is opened in another session.

>Unfortunately this will only help diplaying the value only in the session when the value is entered. If the form is closed and opened again, the combo will look empty although it's not. I used my old approach with this (text + combo) and although I did not have time to look, from another reply I received it looks like I'm not the only one. I was just wondering if this is a known issue/bug/feature with foxpro or for some obscure reason this is how it's supposed to work.
>
>>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
Reply
Map
View

Click here to load this message in the networking platform