Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfmenuscut()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfMenuSCut()
Returns the label associated with a given shortcut
------------------------------------------------------------------------------
Syntax:

     dfMenuSCut( <aMenu>, <cAct> ) --> cOpt

Parameters:

     <aMenu>    Menu array.
     <cAct>     Action.

Returns:

     <cOpt> Label associated with the action.

Description:

     Looks for the Opt associated with a given action. The research is
     performed on the full menu.

Example:

     LOCAL aMenu := {}
     dfMenuAdd( aMenu, "1", MN_LABEL ,;
                {||MN_ON}, {||.T.}, "Procedure"   ,;
                "ins",{||CliDeExe(DE_STATE_INK)}  ,;
                "Data Entry" )
     dfMenuAdd( aMenu, "2", MN_LABEL ,;
                {||MN_ON}, {||.T.}, "Report"      ,;
                "add",{||CliPrnExe(DE_STATE_INK)} ,;
                "Report" )
     EVAL( dfMenuBlock( aMenu, dfMenuSCut(aMenu,"add" ) ) )

See also:

     dfMenu(), dfMenuAct(), dfMenuAdd()

See Also: dfMenu() dfMenuAct() dfMenuAdd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson