Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Olaf Doschke
  Where is Olaf Doschke?
 Hamburg
 Germany
 Olaf Doschke
 To: Ken Blum
  Where is Ken Blum?
 Chicago
 Illinois - United States
 Ken Blum
 Tags
Subject: RE: Cannot RemoveObject() Page in PageFrame
Thread ID: 154790 Message ID: 155314 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Saturday, December 29, 2007 8:18:00 PM         
   


I have removed pages successfully by lowering pagecount, if pageorder was equal to pagecount. In your case the third page my be part of the class and therefor cannot be removed.

But you may try in the Init of the page you only want to show, if User_Info[3] >= 7

Return USER_INFO[3] >= 7


Or only add a page if that condition is met, by defining the page as a class then do in the pageframe init:

If USER_INFO[3] >= 7
   This.Memberclasslibrary = ...class library...
   This.Memberclass = ...page class name...
   This.Pagecount = This.Pagecount +1
Endif


Or

If USER_INFO[3] >= 7
   This.NewObject("pg_newpage","page class name","class library")
Endif


Bye, Olaf.

ENTIRE THREAD

Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 4:34:07 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ilya Rabyy @ 12/19/2007 4:59:28 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 5:04:45 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ilya Rabyy @ 12/19/2007 5:11:34 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 5:15:30 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ilya Rabyy @ 12/19/2007 5:28:06 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by suhas hegde @ 12/19/2007 5:27:03 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 5:32:14 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ciprian Zaharia @ 12/19/2007 5:49:06 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/19/2007 8:56:05 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 9:37:47 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/19/2007 10:25:44 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 10:37:59 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/19/2007 10:37:37 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/19/2007 11:27:03 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/19/2007 11:40:39 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/28/2007 8:03:52 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/28/2007 8:40:30 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Hugo Ranea @ 12/28/2007 8:43:38 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Ken Blum @ 12/28/2007 8:55:32 PM
RE: Cannot RemoveObject() Page in PageFrame Posted by Olaf Doschke @ 12/29/2007 8:18:00 PM