CAPSLOCK() Will Not Toggle Setting of CAPS LOCK Key

Last reviewed: June 3, 1996
Article 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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 3, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.