Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - menuchk() validate a menu pointer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 menuchk()           Validate a menu pointer
------------------------------------------------------------------------------
 Declaration
   menu.hdr

 Syntax
   func logical menuchk extern
   param value _MENU pMenu

 Arguments
   pMenu is the pointer to a previously created menu system. If 0, the
         default menu will be used.

 Return
   A logical indicating if pMenu is a valid menu pointer.

 Description
   This function tests if the passed value is a valid menu pointer. It should
   be used by customized menu handlers if the default run-time error handling
   for menus is turned off.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_menuchk
   vardef
      _MENU pMenu
   enddef
   menuseterror( .f. )   // turn off menu run-time error handling
   ? menuchk( pMenu )    // prints .F.
   pMenu = menunew()
   ? menuchk( pMenu )    // prints .T.
   menuclear( pMenu )
   ? menuchk( pMenu )    // prints .F.
   endproc

   proc main
   Test_menuchk()
   endproc

See Also: menunew()

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