Why this source code not works? Exists a workarea open into cAlias!
- Code: Select all Expand view
MENU oMenu POPUP
MENUITEM "Test One" ACTION msgIngo( "Test One" )
SEPARATOR
MENUITEM "Test Two" ACTION msgIngo( "Test Two" )
MENUITEM "Test Three" ACTION msgIngo( "Test Three" )
aEval( oMenu:aItems, {|oItem| oItem:bWhen := {|| !( ( cAlias )->( lastRec() ) == 0 ) } } )
ENDMENU