Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hello Rick,
loPage.Name # goHelp.oViewer.Pages[loPage.PageOrder].Name
I think that the PageOrder is not the index in the page collection but only a display order. I am using the page caption to search in the page collection.
Marcel
>Hi all,
>
>I must be loosing my mind or something. I cannot seem to retrieve a reference to the page if the pages have been reordered.
>
>I use an ON KEY LABEL to fire the following:
>
>************************************************************************
>FUNCTION ToolClick
>*******************
>LPARAMETER lcBand,lcButton
>
>ACTIVATE SCREEN
>loPage = goHelp.oViewer.Pages[goHelp.oViewer.ActivePage]
>? loPage.PageOrder, goHelp.oViewer.Pages[loPage.PageOrder].Name, goHelp.oViewer.ActivePage, loPage.Name
>
>*goHelp.oToolBar.Click(goHelp.oToolBar.Bands(lcBand).Tools(lcButton))
>
>RETURN
>
>When this fires it works correctly for 'non-reordered' pages, but for any re-ordered pages I get the wrong page name returned.
>
>Any ideas what's going on here?
>
>+++ Rick ---
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement