Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActivePage and Pages collection not the same.
Message
From
11/01/2000 11:49:05
 
 
To
10/01/2000 20:23:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00315867
Message ID:
00316272
Views:
30
>Dan-
>
>I added a button to my test form that, when clicked, tells me what activePage is. When Page3 (which is the last page, since I moved Page4 to the front) is active, activePage does = 4, as expected. And, when Page4 is active, ActivePage does equal 1.
>
>I'm using VFP 6.0 w/ SP3.
>
>I reordered these pages in design, not during runtime.
>
>I still don't know what the actual result is. Does the active page change (even if incorrectly)? If not, then if you have the code in an event, you may need to add a NODEFAULT.

Ok. Now try this in the button.

?THISFORM.PageFrame1.Pages( THISFORM.PageFrame1.ActivePage ).Name

I'm guessing the example above when the ActivePage is 4, the name of the page will return "Page4".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform