In This case then your pageframe must have the maximum number of pages that you allow with the code then on the init of the form do your checking and put thisform.pageframe.pagecount = n this will remove the pages that you don't want.
>Hi folks
>
>Its not the adding the pages itself that is the problem but adding method coding to the say the activate/deactivate methods of the new pages created with
>setting the pageframe pagecount.
>
>Regards
>
>Kal
Alexandre Palma
Senior Application Architect