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>dfmenuact()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfMenuAct()
Returns the menu label associated with a given hot key
------------------------------------------------------------------------------
Syntax:

     dfMenuAct( <aMenu> ,<cAct> ) --> cLab

Parameters:

     <aMenu>    Menu array.
     <cAct>     Key to find.

Returns:

     <cLab> corresponding menu label.

Description:

     Verifies if a menu label is associated with a given key, and returns
     the found label. If the label is not found, an empty label is
     returned. The research is performed only at the first menu level.

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" )
     dfMenu( aMenu, 1,1, 24,79, , dfMenuAct( aMenu,"A_s" )

See also:

     dfMenu(), dfMenuScan(), dfMenuSCut()

See Also: dfMenu() dfMenuScan() dfMenuSCut()

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