ALT Key Cannot Be Used with the SET FUNCTION Command

Last reviewed: June 27, 1995
Article 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

SUMMARY

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.

MORE INFORMATION

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:

   SET FUNCTION ALT TO 'TEST'


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


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 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.