Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Parent property and PEMSTATUS
Message
De
14/08/2005 06:56:19
 
 
À
13/08/2005 18:51:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040740
Message ID:
01040763
Vues:
10
>Because Parent is not usable, expected a Hidden or Protected setting
>
>* Expected no errors
>=CREATEOBJECT("myForm1")
>
>DEFINE CLASS myForm1 AS Form
>	PROCEDURE Load
>		IF	PEMSTATUS(m.this,"Parent",5)	;	&& Expected .F.
>		AND NOT PEMSTATUS(m.this,"Parent",2)		&& Expected .T.
>			? GETPEM(m.this,"Parent")		&& Then : Error 1924
>		ENDIF
>		RETURN .F.
>		
>	PROCEDURE eRROR
>		LPARAMETERS nError, cMethod, nLine
>		? nError,MESSAGE()
>ENDDEFINE
>
>Same for ActiveForm,ActiveControl ....
________________________________________________
Fabio,

What do you mean by 'parent is not usable' ??

Why do you want 'parent' to be hidden ?


As I see it, Parent can have a value, it is just not defined in the context above and hence the error
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform