ID: Q130136
The information in this article applies to:
Macros created in FoxPro for Windows perform differently in FoxPro for MS-DOS. In the example below, the macro key {ALT+Z} is ignored in FoxPro for MS-DOS, but works correctly in FoxPro for Windows.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The following code produces results that are different in FoxPro for MS-DOS from what they are in FoxPro for Windows. In FoxPro for Windows "test.txt" contain:
READ #1
ALT-Z
CTRL-Z
FoxPro for MS-DOS ignores the ALT+Z, and test.txt returns:
READ #1
CTRL-Z
1. In FoxPro for Windows, choose Macros from the Program menu.
2. Create a new macro. Set the following properties:
Define Key: {ATL+S}
Macro Name: mac1
Macro Contents: {ALT+Z}
{CTRL+Z}
{ENTER}
3. Save the macro as tmac
4. Create a program with the following code:
*********Program Code************
rest macros from tmac
play macro mac1
set print to test.txt
set print on
? "READ #1"
?
ON KEY LABEL ALT+Z ? "ALT+Z"
ON KEY LABEL CTRL+Z ? "CTRL+Z"
@ 1,1 get x default "Wait"
read
ON KEY LABEL ALT+Z
ON KEY LABEL CTRL+Z
set print off
set print to
modify command test.txt
**********End of Code**********
Keywords : FxprgGeneral kbbuglist
Last Reviewed: May 21, 1997