Thank you Dragan, I didn't know that changing PageOrder would change ActivePage return value. I really never had to do that.
Luis
>Doesn't work if page order was changed from the default. If you've added page7 and made it appear between page4 and page5 (by setting its pageorder=5), the pageframe.activepage=5 when active page is pageframe.pages[7]. That's why Marcia is right.
>
>>Hello Marcia,
>>
>>It wouldn't be better: This.Pages(This.ActivePage) ??
>>
>>Just a suggestion.
>>
>>Luis
>>
>>
>>>
I am trying to determine which Page of the Pageeframe has the focus.>>>
>>>In addition to what the others have said, remember that the activePage property is corresponds to the PageOrder property of the page that currently has fous. So, to be absolutely positively sure you have the right page, you need code that is similar to this in the pageframe:
>>>
>>>
>>>FOR EACH loPage IN This.Pages
>>> IF loPage.PageOrder = This.activePage
>>> *** loPage is the object reference to the page that has focus
>>> .
>>> .
>>> .
>>> EXIT
>>> ENDIF
>>>ENDFOR
>>>