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 - updatescoreboard() update active scoreboard items http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 updatescoreboard()  Update active scoreboard items
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   proc updatescoreboard extern

 Arguments
   None.

 Return
   None.

 Description
   This procedure allows updating the scoreboard display outside of an
   active read. The procedure is handy for writing your own get readers.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_updatescoreboard
   vardef
      uint uKey
   enddef
   clear
   @ 3, 0
   ? "Input text. The scoreboard is automatically set during input"
   ? "according to the current key state. Press Escape to exit."
   ?
   setscoreboard( .t. )                    // switch on scoreboard
   do while .t.
      uKey := inkey()                      // accept a key press
      updatescoreboard()                   // update scoreboard
      do case
      case uKey == K_ESC
         exit
      case uKey >= ' ' .and. uKey <= 'z'
         ?? chr( uKey )
      endcase
   enddo
   endproc

   proc main
   Test_updatescoreboard()
   endproc

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