Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: HIDDEN a property is unusable
Message
De
17/02/2005 08:38:55
 
 
À
17/02/2005 06:11:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00987841
Message ID:
00987882
Vues:
41
Have you looked at the definition of HIDDEN in the help file?


>This show that HIDDEN is unusable.
>
>If you define a Class with a Public Property,
>if on a defined subclass HIDDEN the property,
>the program stops to work.
>
>
>CLEAR
>ON ERROR ? MESSAGE()
>
>WITH CREATEOBJECT("SuperClass")
>	.CALL
>ENDWITH
>
>?
>
>WITH CREATEOBJECT("subClass")
>	.CALL
>ENDWITH
>ON ERROR
>
>DEFINE CLASS subClass  as SuperClass
>	hiddenproperty = 2	
>	HIDDEN hiddenproperty
>	
>ENDDEFINE
>
>DEFINE CLASS SuperClass as custom
>	hiddenproperty = 1
>
>	PROCEDURE call
>		? "SuperClass CALL hiddenproperty IS PUBLIC HERE"
>         this.hiddenproperty = 3
>	ENDPROC
>ENDDEFINE
>
>
>Fabio
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform