General information
Category:
Coding, syntax & commands
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only