Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box 'free form' text
Message
From
25/06/1999 17:13:24
 
 
To
25/06/1999 17:10:38
Jaime Vila
Miami Children's Hosp. - Radiology
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234168
Message ID:
00234209
Views:
29
>>>>>Good day to all!!!!
>>>>>
>>>>>I'm hoping someone can help me with this, I'm stuck!!!
>>>>>
>>>>>I've got a form with a combo (drop down) box that uses a field in a table as it's source.
>>>>>
>>>>>I would like to have the option of typing in a value, instead of only selecting from the list. When I type a string value into the combo box and then try to use it via the controls Value property, It's blank.
>>>>>
>>>>>HELP!!!
>>>>>TIA
>>>>
>>>>When Combo.Style=0, the typing string (if you type something which is not in list portion) goes to Combo.DisplayValue property, and Value is really blank.
>>>
>>>Thanks Edward !
>>>
>>>So where do the characters I enter into the edit area go when that control losses focus?
>>>
>>>TIA
>>
>>They go to combo.displayvalue property, e.g.
>>** Combo.Lostfocus event
>>IF Not (This.DisplayValue==This.Value)
>> =messagebox("you really typed something new here")
>>ENDIF
>
>I'm using VFP 3.0 . . . . I'll try it with VFP 6 . . . Thanks again

It should works in both VFP3 and 6.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform