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