Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a method in form from shortcut menu
Message
From
09/08/2000 15:58:12
 
 
To
09/08/2000 15:46:20
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00402935
Message ID:
00403023
Views:
15
It worked using this syntax:

RightClick Event of Grid:
private nBar
nBar = 0
do shortcut.mpr with nBar
do case
...
endcase

In the setup code of the menu:
parameter nBar

All options have result = command with the following code:
nBar = bar()

The only thing I can think of what was wrong before is that: I probably added the parameter code in either Procedure or Cleanup of the menu.

Thanks Trey/Jim

Ramil 8/9

>Jim,
>Still does not work. I have, in my main menu - which was generated from a modified quick menu, options that calls form methods directly (ie. frmMain.cmdAdd.click) from the command portion of the menu and worked.
>
>I'm sure shortcuts behave a bit differently because of their limited visibility. I've even shoved a public variable into the shortcut but still its value did not change. I'll work along the BAR() and menu setup portion further.
>
>Ramil 8/9
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform