Redefining the Function Keys in FoxPro Config File

Last reviewed: October 11, 1996
Article ID: Q97052
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 1.0, 1.01 and 1.02, 2.0, 2.5, and 2.5a
  • Microsoft FoxBASE+ for MS-DOS, versions 1.21, 2.0, and 2.1

SUMMARY

To assign an expression to a function key in the CONFIG.FPW (FoxPro for Windows), CONFIG.FX (FoxBASE+ for MS-DOS), or CONFIG.FP (FoxPro for MS-DOS) file, specify F<num>=<char_str>.

MORE INFORMATION

For example, to assign the character string 'SET SYSMENU TO DEFAULT' to the F2 key, use the following statement in the CONFIG.FPW file:

   F2='SET SYSMENU TO DEFAULT;'

FoxPro translates a semicolon (;) in the expression as a carriage return. When the F2 key is pressed, the command SET SYSMENU TO DEFAULT is executed.

To clear function key definitions, use the CLEAR MACROS command.


Additional reference words: FoxDos FoxWin 1.00 1.01 1.02 2.00 2.50 2.10
2.50a
KBCategory: kbprg
KBSubcategory: FxenvConfigfp


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: October 11, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.