Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Member Class
Message
From
20/08/2003 13:50:52
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Member Class
Miscellaneous
Thread ID:
00821907
Message ID:
00821907
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform