Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Form's methods from shortcut Menu
Message
From
18/03/2000 00:22:07
 
 
To
17/03/2000 13:53:05
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00347201
Message ID:
00347411
Views:
21
>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?

You need to have an object reference tyo the correct form that is visible and accessible to the shortcut menu. The "thisoform" construct points at the current form, not necessarily the form you'd like to reference. If you save the proper form reference to a memvar or property that your shortcut knows how to find, you could use the known item to reference the right form even if it is not the active form at the moment.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform