Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DoDefault and inheritance
Message
De
21/02/2008 05:45:48
 
 
À
21/02/2008 05:38:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01294645
Message ID:
01294648
Vues:
23
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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform