ID: Q107825
The information in this article applies to:
The behavior of the CAPSLOCK() function differs between FoxPro for Macintosh and FoxPro for MS-DOS or FoxPro for Windows.
In FoxPro for MS-DOS and FoxPro for Windows, the following command toggles the CAPS LOCK key on:
=CAPSLOCK(.T.)
In FoxPro for Macintosh, the previous command does not toggle the setting
of the CAPS LOCK key. However, the following command accurately returns the
current state of the CAPS LOCK key:
=CAPSLOCK()
This behavior is due to hardware differences between the PC and Macintosh
environments. The PC CAPS LOCK can be toggled through a software switch;
therefore, FoxPro can change the state of the key. The Macintosh CAPS LOCK
can be toggled only by physically pressing the key on the keyboard, so
FoxPro is unable to toggle the state of the key.
Additional reference words: VFoxMac 3.00b FoxMac 2.50b KBCategory: kbprg KBSubcategory:
Last Reviewed: June 3, 1996