Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/107825

From BetaArchive Wiki

CAPSLOCK() Will Not Toggle Setting of CAPS LOCK Key

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:


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