Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unruly Combo Box
Message
From
10/11/1997 20:20:31
 
 
To
10/11/1997 13:36:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00059222
Message ID:
00059428
Views:
34
>>>I have, by now , written several programs in VFP and used a lot of combo boxes. All of a sudden, in my latest venture, none of them are working properly. Here are the symptoms: If I run a form, press the Edit button, and go straight to the combo box, it will not "keep" any selection I make from the drop-down box (the Style property is 2--Drop Down List). If, however, I poke around on the form and go back to the combo box, it functions just fine. Or, if I type the first letter of the desired choice, it works fine (sometimes). I just cannot select from the drop-down box. Instead, the combo box remains empty and, if there happens to be a control "underneath" the selection that I click on, focus is shifted to that control. It is as if the drop-down list doesn't exist. This behavior happens whether I use my sub-classed control or whether I use the VFP standard control with no custom methods at all. It also happens , irrespective of how I fill the combo box.
>>>
>>>Anybody out there seen anything like this? I don't know where else to look and would really appreciate some clues.
>>>
>>>TIA.
>>>
>>>John
>>Hi John.
>>
>>What are the ControlSource and RowSource for the Combo?
>>
>>Marcia
>
>Marcia:
>
>Thanks for kicking in here. The ControlSource is a field in a table in the DE. Bound is .T. The RowSource is a field in another table, also in the DE. To be specific, I have a table of colleges that is the RowSource; I want to stamp the selected college into the Student.College field (the ControlSource). Any idea what I might be doing wrong?
>
>Thanks again . . .
>
>John

Hi John.

This seems awfully goofy to me. What you are doing certainly seems straightforward enough. When I got your reponse, and re-read your original message, it struck me as odd that now *none* of your combos are working any more. If this is the case, it might be a good time to re-install VFP. Just a thought...

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform