>Is there any way to simulate the hiding of a page in VFP 9?
>TIA.
If you can permit that the to be hidden pages are lost for the rest of the form session, then first manipulate the pageorder of the pages and then set pagecount to the number of remaining pages.
Suppose you have five pages:
1 thisform.pgf.pagAddress
2 thisform.pgf.pagRelation
3 thisform.pgf.pagNewAddress
4 thisform.pgf.pagEditAddress
5 thisform.pgf.pagOutdateAddress
The numbers here are their initial PageOrder properties.
In case you want to get rid of pagNewAddress, you should do the following:
thisform.pgf.pagEditAddress.PageOrder = 3
thisform.pgf.pagOutdateAddress.PageOrder = 4
thisform.pgf.PageCount = 4
The pagNewAddress page will get lost. Note that this also is true for all objects on it, so updates of those no longer existing objects will generate an error.
I use this as a means to limit functionality. The expert gets all, the simpler user gets only a subset. Or the user who's willing to pay versus the one who prefers the freeware copy. :)
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.