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 - cancel terminate program with clean up http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 cancel              Terminate program with clean up
------------------------------------------------------------------------------
 Syntax
   cancel

 Arguments
   None.

 Description
   The cancel command is a synonyme of the quit command.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_cancel
   ? "Program start."
   if alert( "Quit program?", " Yes ; No ", RED_WHITE, BLUE_WHITE ) == 1
      ? "Cleaning up..."
      ? "Exiting program."
      cancel 1 // return 1 to the calling process
   endif
   ? "Continue executing program..."
   ? "Program end."
   cancel 0 // without this call an accidental value is returned to DOS
   endproc

   proc main
   Test_cancel()
   endproc

See Also: _quit quit

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