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 - _menu menu pointer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _MENU               Menu pointer
------------------------------------------------------------------------------
 Declaration
   menu.hdr

 Syntax
   typedef ulong _MENU

 Description
   The _MENU type is used to declare a pointer to a menu. A menu pointer
   is returned by the menunew() function, and used by the other menu related
   functions.

 Example
   #define EXAMPLE_TYPE
   #include example.hdr

   proc Test_MENU
   vardef
      _MENU pMenu
   enddef
   menuseterror( .f. )      // Turn off menu run-time error handling
   ? coreleft()             // Prints a value
   pMenu = menunew()
   ? coreleft()             // Prints a value smaller than the previous one
   ? menuclear( pMenu )     // Prints .T.
   ? coreleft()             // Again prints the first value
   ? menuclear( pMenu )     // Prints .F.
   endproc

   proc main
   Test_MENU()
   endproc

See Also: menunew()

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