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

     dfMenuBlock( <aMenu>, <cLab> ) --> bLab

Parameters:

     <aMenu>    Menu Array.
     <cLab>     Label to look for.

Returns:

     <bLab> CodeBlock associated to the menu label.

Description:

     Looks for the codeblock associated to the given menu label.

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

See also:

     dfMenu(), dfMenuAdd()

See Also: dfMenu() dfMenuAdd()

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