Article ID: 127848
Article Last Modified on 8/26/1999
DO FORM TEST NAME ofrmTest1 LINKED &&Displays a form
ofrmTest2=ofrmTest1 &&Creates a reference to ofrmTest1
* The following command releases the variable ofrmTest1. However, the
* form is not released because a reference exists.
RELEASE ofrmtest1
RELEASE ofrmtest2 && Releases the Form
OFORM1=CREATE('testclass')
OFORM2=OFORM1 &&Creates a reference to OFORM1
OFORM2.SHOW && Displays the Form
nobject= AINSTANCE(atest1,'testclass')
DISPLAY MEMORY LIKE atest1 && Two references to the object exist
RELEASE OFORM2 && Form not released
WAIT WINDOW "After OFORM2 has been released"
RELEASE oForm1 && Form is released.
WAIT WINDOW "After OFORM1 has been released"
DEFINE CLASS TESTCLASS AS FORM
Caption="Hello"
ENDDEFINE
Additional query words: VFoxWin close
Keywords: KB127848