Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing pages from pageframe subclass
Message
De
11/02/1999 08:58:28
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
11/02/1999 08:44:57
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00186435
Message ID:
00186466
Vues:
17
Mark,

I'll give it a try

Thanks

Rex

>>All,
>>
>>I am subclassing a form which contains a pageframe with 2 pages. I will be using the first page and dynamically creating one or more other pages based on need so I only need 1 page originally. In the Page2.Init event I enter a RETURN .F. to not instantiate the second page. At this point a TYPE("ThisForm.PageFrame.Page2") = "U" and Thisform.PageFrame.PageCount = 1, all is well. When I recreate the second page and name it Page2, the same as the original name, I get an invalid name because the second page has the same name as the parent's second page.
>>
>>I know I could just change the name of the second page, but this seems to be a bug (feature). Has anyone gotten this to work correctly.
>>
>>TIA
>>
>>Rex
>
>Is it possible to set the no. of pages in the parent class to 1, then you won't need to bother stopping the page2 Init.
>
>Alternatively, try allowing the second page to Init, then (in the pageframe or form init) do a RemoveObject to dump the second page.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform