Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox overwrites in a page frame
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox overwrites in a page frame
Divers
Thread ID:
00170114
Message ID:
00170114
Vues:
52
As the title suggests, I'm encountering a problem with listbox contents being overwritten while changing pages in a page frame. The listboxes have the same name and they are both multi-selectable. Rowsourcetype for both is an SQL select - the selects are triggered by a click event on both pages. However, the navigation method through the pages (VCR-like buttons) automatically calls the click events depending on which page is coming up. After stepping through the debugger, here's the basic scenario: page 1 loads up O.K. Everything that should be in listbox1 is there. I multiselect 40 or so items from the list. Then, I hit the "next" button to head to the next page. The click event for "next" calls a click event to populate listbox2. As soon as listbox2 is populated, however, listbox1 contains everything that is in listbox2. (they are quite different SQL selects) Why does this happen? These are separate listbox objects on separate pages with the same name. I highly doubt name collisions are occuring here. Help! Thank you.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform