PRB: SET SYSMENU OFF Disables CTRL+T

Last reviewed: June 27, 1995
Article ID: Q108088
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

SYMPTOMS

In a program file, when the SET SYSMENU OFF command is issued followed by the BROWSE command, the CTRL+T shortcut key combination does not mark the record for deletion or undelete a record previously marked for deletion, as expected. With SET SYSMENU OFF, pressing CTRL+T instead deletes the field or part of the field of the record you are currently on.

RESOLUTION

To work around this problem, do the following:

  1. Type the following commands in a program file called TEST2.PRG:

          IF DELETED() = .T.
    
            RECALL
          ELSE
            DELETE
          ENDIF
    
    

  2. In the Command window, issue the following command:

          ON KEY LABEL ctrl+t DO test2.prg
    

  3. Type the following commands in a program file called TEST.PRG:

          SET SYSMENU OFF
          USE customer.dbf
          BROWSE
          CLOSE ALL
          SET SYSMENU ON
    

  4. In the Command window, issue the following command:

          DO test.prg
    

  5. When the Browse window appears, press CTRL+T. Note that the record will now toggle the between deleted and not deleted.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b control+t
hot key
hotkey
KBCategory: kbprg kbprb
KBSubcategory: FxprgBrowse


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.