Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox overwrites in a page frame
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Listbox overwrites in a page frame
Miscellaneous
Thread ID:
00170114
Message ID:
00170114
Views:
51
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.
Next
Reply
Map
View

Click here to load this message in the networking platform