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 - _hscr saved screen handle http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _HSCR               Saved screen handle
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   typedef int _HSCR

 Description
   The _HSCR type is used to declare a saved screen handle. A screen
   handle is returned by the savescrn() function, and used by the
   various screen restore functions.

 Example
   #define EXAMPLE_TYPE
   #include example.hdr

   // Save a portion of the screen, get user input, and restore the screen
   
   proc Test_HSCR
   vardef
      char( 20 ) cName
      _HSCR      hScreen
   enddef
   cName := "Christine"
   hScreen := savescrn( 8, 8, 12, 44 )
   @ 8, 8 to 12, 44
   @ 10, 10 say "Input Name: " get cName
   read
   restorescrn( hScreen )
   ? "Input was", cName
   endproc

   proc main
   Test_HSCR()
   endproc

See Also: savescrn()

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