>I have a form with a PageFrame (pfSalesOrder). The PageFrom and two pages (pgNewItems, pgShipping).
>
>I want to modify the PageFrame by adding a third page (pgChanges). Based on some condition I want either pgNewItems or pgChanges to be the first page displayed and the other to be invisible. pgShipping will always remain as the second visible page.
>
>What I did was increase the PageCount to 3. I set the PageOrder for pgChanges to be 2 and set the PageOrder for pgShipping to be 3.
>
>In the form's Init method I have
>IF myCondition
> thisform.pfSalesOrder.removeobject('pgNewItems")
>ELSE
> thisform.pfSalesOrder.removeobject('pgChanges")
>ENDIF
>
>Question 1: Is there some way to make a page invisible without removing it the from the PageFrame?
>
>After removing pgNewItems the form displays pgChanges as the first page and pgShipping as the second page. However, pgShipping is the Active page.
>
>I know how to fix this in code but.......
>
>Question 2: Is there some property I can set so that PageOrder is also the ActivateOrder
>
>Thanks..........Rich
No on both questions.
If it's not broken, fix it until it is.
My Blog