FIX: Return Key Terminates Read with Disabled push button

Last reviewed: October 20, 1997
Article ID: Q128198
2.50c MACINTOSH kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Macintosh, version 2.5c

SYMPTOMS

Pressing ENTER on a screen that has a disabled non-terminating push button terminates the read when the screen is run.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This bug was corrected in FoxPro version 2.6a for the Macintosh.

MORE INFORMATION

Steps to Reproduce Problem

The following code snippet demonstrates the problem. Run it under version 2.5c of FoxPro for Macintosh and press the ENTER key to see the program cancelled.

**-------------------------------------------------------------------**

** Default Pushbutton Demonstration                                  **
**-------------------------------------------------------------------** @ 5, 13 GET mpb ;
  PICTURE "@*HN3 \! Default button;Other button"  ;
  SIZE 1.5, 14, 1 ;
  DEFAULT 1 ;
  VALID pushed()

READ CYCLE WHEN disdefpb()

FUNCTION disdefpb SHOW GET MPB,1 DISABLE

FUNCTION pushed WAIT WINDOW "Button was pushed"


Additional reference words: FoxMac 2.50c buglist2.50c fixlist2.60a
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxotherGeneral
Solution Type : kbfix


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