I want to change the font size and bold the title of the active page in a page frame. I put the following in the refresh:
FOR MyPageCount=1 TO thisform.PageFrame1.PageCount
thisform.PageFrame1.Pages(MyPageCount).refresh
thisform.PageFrame1.Pages(MyPageCount).FontBold=(thisform.PageFrame1.ActivePage=MyPageCount)
thisform.PageFrame1.Pages(MyPageCount).FontSize=IIF(thisform.PageFrame1.ActivePage=MyPageCount,14,10)
NEXT
All worked well until I changed the order of the pages. It seems ActivePage returns the relative order of the page and Pages(MyPageCount) refers to the actual order the pages were added to the pageframe. I can find where I can change how the pageframe refers to the pages by number with respect to the pages() array. Any ideas or alternate solutions would be appreciated. Thanks
FOR MyPageCount=1 TO thisform.PageFrame1.PageCount
thisform.PageFrame1.Pages(MyPageCount).refresh
thisform.PageFrame1.Pages(MyPageCount).FontBold=(thisform.PageFrame1.ActivePage=MyPageCount)
thisform.PageFrame1.Pages(MyPageCount).FontSize=IIF(thisform.PageFrame1.ActivePage=MyPageCount,14,10)
NEXT
All worked well until I changed the order of the pages. It seems ActivePage returns the relative order of the page and Pages(MyPageCount) refers to the actual order the pages were added to the pageframe. I can find where I can change how the pageframe refers to the pages by number with respect to the pages() array. Any ideas or alternate solutions would be appreciated. Thanks