Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Member Class
Message
De
20/08/2003 13:50:52
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Member Class
Divers
Thread ID:
00821907
Message ID:
00821907
Vues:
41
Hi all

I have been working on a new pageframe class that is using a simple member class that I have created. When I add my class to page of the same class I get an error.
Error Loading file - record number 38. Anewpageframe1 <or one of its members>. Parent : Cannot add ANEWPAGEFRAME1. Class definition is cyclical.  
Shouldn't I be able to add a pageframe to a page? I have tried using the base class on the second pageframe and that works. I just created the new class from the base class and I only added the member class and two methods. Here is the code.
DEFINE CLASS cpage AS page

PROCEDURE activate()
	thisform.lockscreen = .f.
	this.Parent.activatepage(this.Parent.activepage)
ENDPROC 

PROCEDURE deactivate()
	thisform.lockscreen = .t.
	this.parent.pagechange(this.Parent.activepage)
ENDPROC 

ENDDEFINE
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform