Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo-Box Question
Message
From
26/02/1999 15:28:27
 
 
To
26/02/1999 15:20:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192130
Message ID:
00192134
Views:
20
>Hi All,
>
>I posted a similar message this morning but with no taker.
>
>As I understand, combo-boxes are supposed to be able to let
>the user to choose from the list OR to enter new data directly
>in the combo-box.
>
>For some reason, when users enter data directly into the combo-box
>the ControlSource variable is not being updated as when they
>select an entry from the drop-dwon list.
>
>Either I must be doing something wrong or I am not understanding
>the purpose of the combo-box control correctly.
>
>Any help would be appreciated!!!

In a case of drop-down combo (Style=0) the text portion entry (not found in the lost portion) is keeping in Combo.DisplayValue property, so you may use in combo.lostfocus event:
IF NOT This.DisplayValue==This.Value && it's the case
*** do something here, e.g. REPLACE myfield With This.Displayvalue, or store it in some property/variable etc.
ENDIF
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform