Microsoft KB Archive/130136

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, version 2.6a

-

SYMPTOMS
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.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
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

Steps to Reproduce Problem
 In FoxPro for Windows, click Macros from the Program menu.  Create a new macro. Set the following properties:

 Define Key: {ALT+S} Macro Name: mac1 Macro Contents: {ALT+Z} {CTRL+Z} {ENTER}  Save the macro as tmac.  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 

Additional query words:

Keywords         : FxprgGeneral Version          : MS-DOS:2.6a Platform         : MS-DOS Issue type       :
 * }