Microsoft KB Archive/107825

{| = CAPSLOCK Will Not Toggle Setting of CAPS LOCK Key =
 * width="100%"|

ID: Q107825

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, version 2.5b
 * Microsoft Visual FoxPro for Macintosh, version 3.0b

SUMMARY
The behavior of the CAPSLOCK function differs between FoxPro for Macintosh and FoxPro for MS-DOS or FoxPro for Windows.

MORE INFORMATION
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:
 * }