Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Pages
Message
 
 
To
30/04/1998 15:15:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00096090
Message ID:
00096094
Views:
11
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform