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 - clear menu clear the current menu structure from memory http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 clear menu          Clear the current menu structure from memory
------------------------------------------------------------------------------
 Syntax
   clear menu

 Arguments
   None.

 Description
   The clear menu command clears the current menu structure defined by
   @ prompt commands from memory.

   Usually, the @ prompt commands are followed by a menu to command
   which automatically clears the menu structure from memory unless the save
   option was specified together with the menu to command.

   In such cases, or if no menu to command was executed after the
   definition of prompts, use clear menu to release the memory allocated for the
   menu items.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_clearmenu
   vardef
      uint n
      uint uChoice
   enddef
   clear
   ? coreleft()                    // display free memory
   cursor( .f. )
   for n := 0 to 11                // set up menu system
      @ n + 3, 1 prompt padr( __monthnames[ n ], 12, ' ' )
   next
   menu to uChoice save            // execute menu
   @ 16, 0
   ? coreleft()                    // display free memory
   clear menu                      // release menu prompts
   ? coreleft()                    // display free memory
   endproc

   proc main
   Test_clearmenu()
   endproc

See Also: menu to prompt

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