oFormRef.ChangeHeading()If you open the menu's .MPR file, you will notice that the first parameter being passed in is named oFormRef which is the form object.
>DO gl_menu.mpr WITH THISFORM, "MainMenu", .T. >>Upon selecting the menu item, I want to access a method written in the top level form. If I write the procedure code for the menu item as
>THISFORM.ChangeHeading
it says ‘THISFORM can not be used within the method’.