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 - setnumkey() set numlock mode http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setnumkey()         Set NumLock mode
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   proc setnumkey extern
   param value logical lNumLock

 Arguments
   lNumLock is the setting for the NumLock mode.

 Return
   None.

 Description
   This procedure activates/deactivates the NumLock mode. If lNumLock is
   .t., the NumLock mode will be activated.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc TestKey static
   wait "Num Lock is " + iifc( numkey(), " on", "off" ) + ". Press a key."
   endproc
   
   proc Test_setnumkey
   TestKey()
   setnumkey( .t. )
   TestKey()
   setnumkey( .f. )
   TestKey()
   endproc

   proc main
   Test_setnumkey()
   endproc

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