I have a pageframe with over 30 pages on it, the tabs are hidden, and the user navigates to the pages using a Grid and based on the Grid's click event/afterrowcolumn change, i active the appropriate page.
In another methd, i want to get the caption of the current active pageframe. (or reference to it)
this is how i came up with it.. i am wondering if there is another easiser way.
Method to get which page i am on... (mind you, the page order is not the same as the .Activepage result)
Ali Koumaiha
TeknoSoft Inc.
Michigan
In another methd, i want to get the caption of the current active pageframe. (or reference to it)
this is how i came up with it.. i am wondering if there is another easiser way.
Method to get which page i am on... (mind you, the page order is not the same as the .Activepage result)
Code:
Local lnPage, lnIndex, loPage, loRetPage
lnPage = thisform.pgDocs.ActivePage
loRetPage = ""
FOR lnIndex = 1 TO thisform.pgDocs.PageCount
loPage = thisform.pgDocs.Pages(lnIndex)
lnOrder = loPage.PageOrder
IF lnPage = lnOrder
loRetPage = loPage
Exit
ENDIF
ENDFOR
Return loRetPage
Ali Koumaiha
TeknoSoft Inc.
Michigan