Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only