BUG: Macro Performs Differently in FoxPro for MS-DOS

Last reviewed: May 19, 1997
Article ID: Q130136
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. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

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

  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
Technology : kbatl


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: May 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.