Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Parent property and PEMSTATUS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
BUG: Parent property and PEMSTATUS
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040740
Message ID:
01040740
Vues:
51
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 ....
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform