Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
From
24/10/1997 17:51:05
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00056153
Message ID:
00056626
Views:
32
>>>>>I have a combobox that has recently exibited a strange behavior. The RowSourceType is set to value,and the RowSource is set to ",Hawaii,Alaska,Pacific,Mountain,Central,Eastern,Alantic,Newfoundland".
>>>>>
>>>>>When the user clicks on a choice, the list box goes away, but the selection is not displayed in the text portion of the combobox. If they click on it several times it may finally put it in the box. This has been working fine for nearly one year. I have not touched anything in this class, but recently it started doing this. It works fine in NT,and the Win95 machines have Service Pack 1 installed. Do you have any idea what would cause this behavior.
>>>>>
>>>>>Ed
>>>>Ed,
>>>>
>>>>No, I have not seen this behavior. I would sue the debugger to watch the Value and DisplayValue of the combobox. I woudl also check the boundcolumn property to be sure it is 1.
>>>>
>>>>I generally don't use the rowsource of Value, I instead use the rowsource type of None and use AddListItem in the combo's Init to add the options to the list.
>>>
>>>Jim ,
>>>I changed the way I populate the list to AddListItem, and the boundcolumn is 1
>>>I placed a wait window in the When, Valid and Interactive Change Methods. From this I was able to determine that the When event always fires. When I make a selection, the list rolls up, but the Interactive Change event does not fire. If you select it enough time it may finally select the item. In this case, the Interactive change event will fire. Can you see any reason the the control is not recognizing a change in selection?
>>>
>>>-Ed
>>
>>Some Additional Information: The click event does not fire if it does not work, and the focus is set to the control that is underneith the selection on the list, just as if the list is not there. Therefore, I am unable to capture any value from the combobox.
>>
>>-Ed
>
Sean: That was the problem, however the article says the this has been fixed in VFP 5.0a. This is not true because I have VFP 5.0a.

Ed
>I have experienced the same problem and came to find out it is a bug with the timer control. If the timer event fires when you are making a selection, your choice will not be captured. So if you have a timer firing, say, every second, unless you can make a choice in less than a second, it won't work. Check out Microsoft KB article Q161184 for more information.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform