Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
***BUG: VM it can stops the destruction of form/toolbar
Message
From
10/10/2005 12:33:08
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
***BUG: VM it can stops the destruction of form/toolbar
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01057708
Message ID:
01057708
Views:
58
Observed: the code has to have some particular conditions
repro:
- run
- try to close the form
* conditions 1
SET TALK ON
SET STATUS BAR OFF

WITH NEWOBJECT("fm_test")
	.SHOW
ENDWITH

DEFINE CLASS fm_test AS FORM 
	myRef		= .NULL.

	Autocenter	= .T.

	ADD OBJECT container1 AS container
	
	PROCEDURE container1.Init
          * conditions2
		thisform.myRef	     = thisForm
		= this.parent
	ENDPROC

ENDDEFINE
Where doesn't happen:
	PROCEDURE container1.Init
		thisform.myRef       = thisForm
                = thisForm
	ENDPROC
	PROCEDURE container1.Init
		= this.parent
		thisform.myRef	     = thisform

	ENDPROC
	PROCEDURE container1.Init
		thisform.myRef		 = thisform
		* PUT A BLOCK XXX/ENDXXX (IF/ENDIF,CASE/ENDCASE,WITH/ENDWITH....FOR/ENDFOR...)
		* AND THE BUG DOESN'T APPEAR
		IF .F.
		ENDIF
		= this.parent

	ENDPROC
	PROCEDURE container1.Init
		thisform.ADDPROPERTY("myRef",thisform)
		= this.parent
	ENDPROC
Reply
Map
View

Click here to load this message in the networking platform