Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Form's methods from shortcut Menu
Message
 
To
17/03/2000 13:53:05
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00347201
Message ID:
00347415
Views:
25
>I have a shortcut Menu that I'm using with my application.
>Out of the Procedure in that Shortcut Menu I want to call one of the form's Methods
>For example:
> ThisForm.m_myMethod
>
>I know I cannot do this but how do I call that method?

In addition to what Ed says, you can also refer if as _screen.activeform.myMethod() But you should be careful (probably make a check) because you may hit "Activeform is not an object" error sometimes.. Referring by name as Ed says is better.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform