>>>>Well in design, the original order has swapped pages and none of the pages are in their original position. So how do I make a generic routine that will work with what I am trying to do above.
>>>
>>>You do a FOR EACH on the Pages, then compare the PageOrder property. Do a search on these two properties, there was a Hint of the day by Koziol that went into depth here.
>>
>>I found it. Thanks for the info.
>
>FWIW, I have dealt with a similar situation with grids: I needed a property that would give me an object reference to the activecolumn in a grid. I created a custom property called CurrentColumn, created an Access method for it, and placed code like:
>
>
>LOCAL loColumn
>FOR EACH loColumn IN THIS.Columns
> IF loColumn.ColumnOrder = THIS.ActiveColumn
> THIS.CurrentColumn = loColumn
> EXIT
> ENDIF
>ENDFOR
>RETURN THIS.CurrentColumn
>
>
>you could do the same for your pageframe class.
That looks very much like the code that was used for Page Frames. Thanks for the info.
Congratulations on becoming a MVP