Microsoft KB Archive/106706
The information in this article applies to:
To use function keys F2 through F9 as direct shortcuts to menu bars (menu options), you must first disable the default macro assignment for these keys either through the Command window or a program, or through the CONFIG.FP file, as described below.
By default, FoxPro initiates the following macro assignments for function keys F2 through F9:
Before you can use these function keys as shortcuts to menu bars, you must first remove the default macro assignment for the function keys.
Clearing Function Keys in the Command Window or in a Program
To clear individual function keys, you can use the SET FUNCTION command with no expression following the TO clause. For example, to clear the F2 key, issue the following command: '
SET FUNCTION F2 TO
This command clears the default assignment, thus allowing the menu to accept the function key as a shortcut for a menu bar or pad.
Clearing Function Keys in the CONFIG.FP File
To clear individual function keys in the CONFIG.FP file, do the following:
To clear all the function key assignments, type the following in the CONFIG.FP file: '
COMMAND = CLEAR MACROS
Since you can issue the COMMAND = statement only once in the CONFIG.FP file, if you need to issue more than one command when FoxPro starts, put all the commands in a program. Assuming this program is called MAIN.PRG, type the following in the CONFIG.FP file: '
COMMAND = DO main
"Language Reference," version 2.5, page L3-931
Additional query words: FoxDos item command
Keywords : Version : Platform : Issue type :
Last Reviewed: August 25, 1999