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 - waitproc() install a function to call with the wait command http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 waitproc()          Install a function to call with the wait command
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   proc waitproc extern
   param untyped pFunc

 Arguments
   pFunc is the function to execute.

 Return
   None.

 Description
   The waitproc() function installs a function to call repeatedly while
   the wait command is executing.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Clock                      // clock function
   @ 0, 70 ?? time()
   endproc
   
   proc Test_waitproc
   clear
   cursor( .f. )
   waitproc( Clock )               // install the clock
   wait                            // wait for keypress
   endproc

   proc main
   Test_waitproc()
   endproc

See Also: on idle do on key do wait

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