>I do not have an answer, but I really want to know how you scan the number of pages in a pageframe. I have the following situation. A user has requested that the active page within a pageframe have a noticable backcolor. The inactive pages must be displayed in a dull color. Well, I thought using This.backcolor=RGB(xyz) in the Activate/Deactivate methods. It seems simple enough, but it is always not as simple as it seems. I left out one detail. I have pageframes three levels deep. Each with a minimal of three pages. Anyway I was wondering about your scan method and if U have had any similar requests.
Steve.
Here's a part of the code I have in the Init() of my PageFrame object. This will give you an idea of scanning the pages.
* Font setup
LOCAL lnCompteur
FOR lnCompteur=1 TO This.PageCount
This.Pages(lnCompteur).FontSize=8
This.Pages(lnCompteur).FontName='MS Sans Serif'
NEXT
Also, for what you need, you are gonna have to do a cascade method to get all the pageframe levels you have.