>>Is there any way to identify the previous page? I'm putting security on one page in a pageframe and would like to set the activepage back to the previous page if the security class returns false.
>
>Instead of letting the user click on any tab, use a property or a field value to determine which pages ahould be enabled of disabled. I do this in an app where I am setting up table and field level access rights for users. Table level rights are on one page, and if a table has field level rights, I enable the second page. Otherwise the second page is disabled. This toggling is based on a field value in a table where these rights are maintained.
Thanks, you didn't answer how I wanted but you pointed me in the right direction. While thinking over your answer, I was going to reply that I have a security class that returns .T. or .F. - I realised that all I have to do is PageN.Enabled=oSecurity.CheckSecurity(lcUserName) !!!