>I Have a top level form and a menu is attached with it.
>The last pad of this menu is EXIT , now i want to relese the
>form through This pad selection,
>I have placed the Thisform.Release code in pad command
>but on selecting the pad a error message is generated
>that "Thisform" can be used only in form methord.
>
>Looking for quick solution.
I call the Queryunload of the top-level:
Topform.Queryunload()
which has the Release and Clear Events, and some other code.
Yours should work, though, if you launch the form with a NAME clause and refer to it from the menu.
DO FORM Topform NAME Topform
In Menu Exit:
Topform.Release
Clear Events
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.