[<<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.ClipX.Net --- NG 2 HTML conversion by Dave Pearson