Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove a page from a PF at design time
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to remove a page from a PF at design time
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352266
Message ID:
01352266
Vues:
73
I have a form with a page frame and 11 pages on it. The page frame is based on my own class, and the MemberClass and MemberClassLibrary for the pages on the pageframe are set in the properties of my pageframe class.

I recently ran into trouble attempting to remove 2 of the pages from that pageframe using the form designer.

When I tried deleting the pages directly from the form I got a message saying I couldn't do that because they were members of a class.

So, in the form designer I moved the 2 pages I didn't want to the end, and then edited the pageframe class to reduce the pagecount from 11 to 9.

But, then I was not able to then open the form in the form designer. I got an Error loading file message saying for one of the objects on one of the pages in the pageframe: Error loading file - record number 130. pfProjSubjDetail {or one of its membres}. Parent: object class is invalid for this container.

Note that pfProjSubjDetail is a another pageframe on one of the pages of the pageframe class that I had just edited. But, not one of the 2 pages that I was attempting to delete.

I went back and edited my pageframe class again, and changed the pagecount from 9 to 11, but I got the same error.

I was able to get myself out of this by restoring the library containing my pageframe class definition from a backup tape.

So, how do I remove these pages?

Thanks for your thoughts,
Jim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform