Can't you use .ActivePage to see if your page is on top?
>I want to update the text box contents of a page on the AfterRowColChange Event of a grid only if the page with the text boxes is the top page in the pageframe. Here is a snippet of my code:
>
>cEditPage = Thisform.Pageframe1.Page1.pgfCrossRef.pgEditRecord
>
>If cEditPage.ZOrder(0)
> With Thisform.Pageframe1.Page1.pgfCrossRef.pgEditRecord
> .txtComp.Value = cross.vendor
> .txtDate.Value = cross.date
> endwith
>endif
>
>My thinking was that the If statement would check to see if the pgEditRecord page was on top and then update the text box values ONLY if it is on top. However, when I click on my grid pgEditRecord is brought to the front regardless of what page is currently there.
>
>Why does my If statement change the ZOrder of the pgfCrossRef page frame?
>
>TIA