Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing method through menu
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00909472
Message ID:
00909753
Views:
6
You should be able to reference the form as :
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.

Hope this helps,
Kurt
>I have designed a menu with the menu builder. From my top level for, I am activating this menu with
>
>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’.
>What do I need to do access a form method or any other control on the form?
>
>Thanks in advance.
>Yashodhan.
Previous
Reply
Map
View

Click here to load this message in the networking platform