Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activating a page on a pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00754557
Message ID:
00754647
Vues:
16
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform