Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unruly Combo Box
Message
 
To
10/11/1997 13:36:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00059222
Message ID:
00059385
Views:
35
>>>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

John, have you followed the process using the debugger? Also, what is your BoundTo value? Have you made any changes in the Edit button that might affect the list box? (I've had trouble with edit/read-only buttons before).

Maybe this will give you an idea or 2
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform