Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: remove a Page member leave a zombie object
Message
From
19/10/2005 07:45:30
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01060055
Message ID:
01060185
Views:
14
>Fabio,
>
>Of course...
>
>But the member Page1 is in class definition.
>What is correct?
> - removing all information about member Page1
> - or don't removing member Page1
>
> - (now is only half way)
>
>And different behavior:
>Designe - you cannot remove class's members in derived class or object
>Programmayticaly - You can remove ....
>
>MartinJ
>

I agree, the VFP OOP model is certainly confused.

look this:
CLEAR
ON ERROR ?? "Error: ",MESSAGE()
=NEWOBJECT("pageframe1")

DEFINE CLASS pageframe1 AS Pageframe
	Pagecount = 1
	
	PROCEDURE Init
		? "Pagecount is",this.PageCount 
		? "Now remove the page1",this.RemoveObject("Page1")
		? "Pagecount is",this.PageCount 
		? "this.Page1 is a ",this.Page1
		? "AMEMBER(PAGE1) = #",AMEMBERS(AMM,this.Page1)
		? "this.Page1.name is ",this.Page1.Name
		? "Addobject fire a error: ",this.AddObject("Page1","page")
		? "Add a page member it makes to relive the zombi"
		this.PageCount = 1
		? "this.Page1.name is ",this.Page1.Name
ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform