Hi!
It does not work in EXE because VFP do NOT create the variable with the same name as a form name. This variable is create only for debugging purposes to allow you quickly see all properties and objects of the form in the "locals" debugging window.
In the applications you can use following:
for i=1 to _Screen.FormCount
if _Screen.Forms(i).Name = "MyFormName"
_Screen.Forms(i).Release
exit
endif
endfor
HTH.
>Hello ppl,
>I need to know who can i close a form being in another, Ex. I open the Form XPTO and the form YPTO and then a click in a button in form YPTO that close the XPTO, now i do this in FoxPro object.release(), but in a compiled EXE dont wotr , Why.
>Thanks,
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.