ALT Key Cannot Be Used with the SET FUNCTION Command

ID: Q100995

The information in this article applies to:

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

Last Reviewed: June 27, 1995