Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox clears after selection.
Message
 
 
To
20/07/1999 08:03:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00243502
Message ID:
00243600
Views:
21
Two things that I have found can cause this behaviour.

1) The value selected in the combo is too large to fit in the field it is bound to
2) The value selected is no actually in the combo. This happens when you set the value programatically to something that isn't in the combo.

If you are using numeric values ensure that boundto=.T.

>I am using a number of comboboxes within grids in an application I'm trying to finish up. All of them work correctly now with the exception of one. This one (which is coded exactly like some others that do work) drops the correct list and shows the user selection for an instant and then clears and loses it's .Text value. It's RowSourceType is 3 - SQL Statement and the RowSource is a simple select of a column in a table. The ControlSource is a field of another table (the same as the column in the grid that contains this combobox).
>
>I have compared the properties of this combobox with those of others and even have the identical code in another grid with the identical tables used and properties which does work. I have deleted and re-created this combobox with the same results. Where might I look to correct this situation. I am pressed to finish this application and am stuck on this problem.
>
>TIA,
>Tom.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform