Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoDefault and inheritance
Message
From
21/02/2008 05:45:48
 
 
To
21/02/2008 05:38:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294645
Message ID:
01294648
Views:
22
Hi
Try out this sample code, HTH
lo = CREATEOBJECT("ccc")

DEFINE CLASS aaa as Custom

	PROCEDURE init
	
		MESSAGEBOX("Aaa")
		
	endproc

ENDDEFINE

DEFINE CLASS bbb as aaa

	PROCEDURE init
	
		MESSAGEBOX("bbb")
		DODEFAULT()
		
	endproc

ENDDEFINE

DEFINE CLASS ccc as bbb

	PROCEDURE init
	
		MESSAGEBOX("ccc")
		aaa::Init()
		
	endproc

ENDDEFINE
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Reply
Map
View

Click here to load this message in the networking platform