Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActivePage...Not!
Message
From
04/05/2001 13:51:43
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
ActivePage...Not!
Miscellaneous
Thread ID:
00503661
Message ID:
00503661
Views:
66
The following code works fine except that ActivePage does not get reset to nLastPage. I have traced it as well as put a textbox on the destination page and even though the focus is on the correct page, and I can move around on the page, the ActivePage is staying at the original value. For example, assuming nLastPage=3 and cLastPage="Page3", when I'm on Page4 of a pageframe and click a button (Valid code is below) Page3 appears and is available, but the BackColor doesn't change (in Refresh of the pageframe I use ActivePage to do this) and the ActivePage is still equal to 4. I understand why the correct page is getting the focus as I'm calling it based on cLastPage, but why doesn't ActivePage get reset to 3? During a trace immediately after setting the ActivePage to 3 its value is still 4. Even if I hardcode the "3" instead of using nLastPage! Any ideas? Regards, Renoir

With ThisForm
.closable=.f.
.cformmode=' '
.T48_page_frame1.activepage = nLastPage
.T48_page_frame1.&cLastPage..setfocus
.T48_page_frame1.&cLastPage..Refresh
Endwith
Next
Reply
Map
View

Click here to load this message in the networking platform