Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying Page Order in Pageframe
Message
 
 
To
26/08/2010 14:37:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01478677
Message ID:
01478680
Views:
40
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform