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/100995

From BetaArchive Wiki

ALT Key Cannot Be Used with the SET FUNCTION Command

ID: Q100995

The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, versions 1.02, 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxBASE+ for the Macintosh, versions 2.0 and 2.01


When you try to use the ALT key with the SET FUNCTION command, the following error messages will appear:

   FoxBASE+/Mac 2.0 and 2.01 and FoxPro 1.02 for MS-DOS

      Variable not found!

   FoxPro 2.0, 2.5 and 2.5a for MS-DOS, and FoxPro 2.5 and
     2.5a for Windows

      Variable ALT not found!

The above error messages occur when any invalid key label expression is used. Below is a list of valid key label expressions.


The following key label expressions can be used with the SET FUNCTION command:

   FoxBASE+/Mac 2.0 and 2.01

      2 to 10                 2, 3 ...

      Example: SET FUNCTION 2 to 'TEST'

   FoxPro 1.02, 2.0, 2.5, and 2.5a

      1 to 12                 1, 2 ...
      F1 to F12               F1, F2 ...
      CTRL+F1 to CTRL+F12     CTRL+F1, CTRL+F2 ...
      SHIFT+F1 to SHIFT+F12   SHIFT+F1, SHIFT+F2 ...

      Example: SET FUNCTION CTRL+F1 to 'TEST'

To reproduce the problem, type the following in the Command window and press ENTER:


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.x SET FUNCTION errmsg err msg KBCategory: kbprg kberrmsg KBSubcategory: FxprgGeneral

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