If I properly understand you, what you want should get solved this way:
[\{| [<oMenuItem>] | <uAction>\}],;
If with this change is working right, then we modify FiveWin.ch and problem solved
But it is not a proper solution, because that oMenuItem is not this one:
because it could be used from the codeblock, but not defined there.
In other words, the codeblock parameter oMenuItem should only exist if it is used from the codeblock inside code. As far as I know the Harbour preprocessor (neither Clipper's one) provides support for that.
Antonio Linares wrote:Enrico,
If I properly understand you, what you want should get solved this way:
[\{| [<oMenuItem>] | <uAction>\}],;
If with this change is working right, then we modify FiveWin.ch and problem solved
Antonio Linares wrote:But it is not a proper solution, because that oMenuItem is not this one:
#xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>]
because it could be used from the codeblock, but not defined there.
In other words, the codeblock parameter oMenuItem should only exist if it is used from the codeblock inside code. As far as I know the Harbour preprocessor (neither Clipper's one) provides support for that.
Enrico,
Clipper did not support that, as far as I know, neither Harbour (or xharbour). If the warning that you get comes from the codeblock (have you checked this ?) then I don't see a solution.
BTW, I am sure that you will love this: ![]()
viewtopic.php?p=161905#p161905
OMG, just to report a bug... ![]()
I just lowered warnings level from /w3 to /w. ![]()
EMG
Antonio Linares wrote:Enrico,
Clipper did not support that, as far as I know, neither Harbour (or xharbour). If the warning that you get comes from the codeblock (have you checked this ?) then I don't see a solution.
Antonio Linares wrote:BTW, I am sure that you will love this:
viewtopic.php?p=161905#p161905
LOL
Antonio Linares wrote:OMG, just to report a bug...
Enrico Maria Giordano wrote:Cristobal,
cnavarro wrote:Enrico, look the .ppo
  oMen := MenuBegin( .F.,,, .F., .F. )     MenuAddItem( "Test",, .F.,, {|oMenuItem|MSGINFO( "OK" )},,,,,,, .F.,,, .F. )   MenuEnd()
If you are suggesting to change tons of lines of code, well, it's not an option.
EMG
Cristobal,
Understood, thank you.
EMG
# Troubleshooting
Evaluate these points before reporting an issue:
Antonio,
GOSH! It's just like to say "Please do not disturb. We are playing with our toy.". ![]()
EMG