Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_setcaps()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_SETCAPS()


Syntax:        L_SETCAPS([<expL>])


Purpose:       To determine the current CapsLock key setting and
               optionally set the CapsLock on/off.


Arguments:     <expL> toggles the Capslock key mode ON or OFF
               .T. will set the CapsLock key ON.
               .F. will set the Capslock key OFF..


Returns:       A Logical (.T.) if caps lock is on else returns a
               logical (.F.)

               L_SETCAPS() returns the current Capslock key setting if
               an argument is not specified and the previous key
               setting if the argument is specified.




Usage:         Force the keyboard into an uppercase state without
               needing to convert characters which may have been
               entered in lower case to uppercase.


Examples:      * Force CAPSLOCK ON then reset it to its previous state
               mode = L_SETCAPS(.T.)            && Caps Lock key on

               Put some code here...

               L_SETCAPS(mode)                  && Restore key setting.


Language:      Assembler

See Also: L_SETNUM() L_SETSCRL()

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