Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating a page on a pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00754557
Message ID:
00754647
Views:
22
>Hi,
>
>I believe it goes like this:
>ThisForm.PageFrame.Pages(ThisForm.PageFrame.ActivePage).Property
>
>HTH,
>Arriyel
>
It will only work if display order of pages hasn't been changed. Pages in Pages collection are stored in the order of creation but ActivePage property of pageframe is based on display order of pages (PageOrder property). You'll have to loop through Pages collection to find reference to the current page.
* Get the active page reference.
lnActivePage = This.ActivePage
FOR EACH oPage IN This.Pages
   IF oPage.PageOrder = lnActivePage
      loActivePage = oPage
      EXIT
   ENDIF
ENDFOR
loActivePage.GoToNextPage()
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform