Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Parent property and PEMSTATUS
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
BUG: Parent property and PEMSTATUS
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01040740
Message ID:
01040740
Views:
52
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 ....
Next
Reply
Map
View

Click here to load this message in the networking platform