Franco,
As long as the pages are in sequence like in your case, you could use the pagecount property:
IF < HidePagesCondition >
ThisForm.PageFrame.pagecount = 2
ELSE
ThisForm.PageFrame.pagecount = 8
ENDIF
HTH
>Hi there !!
>
>I am working on this form with a pageframe on it. The pageframe has 8 pages on it . I have a grid on the second page which will determine if the pages 3,4,5,6,7,8 will be enabled or not. But the presentation will not look very good with 6 pages disabled so i need to make them invisible. The only problem is that the pages doesn't have a property Visible like other controls to make them invisible.
>
>Any help is very much appreciated ... THanks Beforehand
Daniel