Steve,
What's not working? I added a Pageframe to a form, set it to 5 pages and put this right click on the form:
this.pageframe1.RemoveObject( "Page" + alltrim( str( this.pageframe1.PageCount ) ) ) everytime I rightclicked the form the last page went away.
Alternatively you can just disable the pages.
Note: this code was in the form click, but the pageframe clicks seem to be falling though onto the form which made for an interesting bug discovery for VFP5 SP3.
>I am trying to remove pages from my pageframe in the Init method of my form. Based on certain criteria, I need to remove some of the pages. I will not need to bring the pages back during this session, all I want to do is remove them. I have tried RemoveObject the particular pages, I have also tried setting the PageOrder of the page to be removed so that it is the last page and then decrementing the PageCount property of the PageFrame. Can someone tell me what I'm doing wrong.