Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with List box re-select
Message
 
 
To
04/12/2002 23:36:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00729762
Message ID:
00729763
Views:
15
Check When() method of the list1. Maybe it returns .F. after the first selection.

>Hi All! (been a long time, nice to be back on the UT)
>
>Under VFP6, I have a form with two list boxes (and various other controls). There's a button that populates the first list box (say list1). When the user clicks on one item in the first list box, the second list (say list2) shows some related data (simple one to many relationship). The code to pop the list2 is in the InteractiveChange method of the list1 (tried click too but...). The first time through all works just fine. However, once an item has been selected in list1, I cannot select any other item in list1 (i.e. with the idea being to change the result in list 2) - just as if list1 had been disabled. If I requery the data for list1, I can again select an item but it only ever allows me to select just one and I cannot change that selection.
>
>Further, I put a button on the form to see if list1 was disabled; it is not (i.e. .Enabled=.T.). And to my surprise, when I click on the list box after selecting an item, the FORM's click method fires! This is the behaviour for a DISABLED control - but even checking if list1 is enabled there tells me it is.
>
>FWIW, List1's RowSourceType is set to 6 and the field list is set programmatically prior to query.
>
>Any suggestions as to what is going on?
>
>-Arne (baffled!)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform