Hi Edward,
I found this thread because I was searching on how to release a form from within another form. Neither forms were part of a class. I found the code below and and used it and it worked great. I just don't know WHY???
My code looks like this:
For Each oForm In _SCREEN.Forms
IF oForm.Name=="startup"
oForm.release()
Endif
Endfor
I don't see how when I say oform.release, that vfp knows which form I'm wanting to release.??? Or maybe it's coming to me now. Does oForm hold a reference or something to my form, and if so how? Still confusing. . . Can you help me a bit here? Oh and thanks again.
-Rick
>You can search through _SCREEN.Forms collection to get the form reference:
>
>For Each oForm In _SCREEN.Forms
> IF oForm.Name=="FormA"
> oForm.Mytimer.Enabled=.F.
> Endif
>Endfor
>