Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
From
24/07/1997 11:10:05
 
 
To
24/07/1997 11:07:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00041476
Message ID:
00041481
Views:
31
>>I have a problem with a ComboBox. I have the folowing properties set, but when the user adds an entry not listed in the RowSource, the data is not saved. What to I have to do so the user can add a new entry and the entry is saved to the table (I don't need it added to the RowSource).
>>
>>ControlSource = helthins_param_view.user_comment
>>RowSource = Cancellation,Death,LOA,Please Refund,Prepayment,Retirement,Return from LOA,Termination
>>RowSourceType = 1
>>Style = 0
>>
>>
>>Jeff
>
>Two things have to be done:
>1. Unbound control, i.e. ControlSource=""
>2. in Combo.LostFocus event:
>If this.displayvalue!=this.value
> Select helthins_param_view
> Replace helthins_param_view.user_comment With This.DisplayValue
>Endif

Sorry, one more add-on:
>2. in Combo.LostFocus event:
Select helthins_param_view
Replace helthins_param_view.user_comment With This.DisplayValue
'IF' is extra, because you have to store any value (from or outside the list).
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform