> Hi,
>
> I have a main.prg calling a form as top level form named MAINFORM. For shutdown I call a procedure in main.prg, with the command
>
>
MAINFORM.release()
>
> I get the error "MAINFORM is not an object". I can see that MAINFORM is present in _screen.forms, even though MAINFORM is a top-level form. I'm puzzled.
> The error must be caused by the form, being a top-level form. How should I address properties on MAINFORM?
>
> Regards, Gerrit
Gerrit,
I dont know how you instantiated your mainform, but I do know you can do:
DO Form frmMain NAME m.goMainwindow
if you than want to close that mainform programmaticaly you can:
goMainwindow.Release
Groet,
Koen