Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with List box re-select
Message
De
04/12/2002 23:36:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problem with List box re-select
Divers
Thread ID:
00729762
Message ID:
00729762
Vues:
62
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!)
arne@synercom-edi.com "There are no absolutes but this one."
President, synercom/edi - Event Ticketing Solutions
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform