FIX: SHOW GET PROMPT for Check Box / Radio Button Causes GPF

Last reviewed: October 14, 1997
Article ID: Q108720
2.50 2.50a 2.50b WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b

SYMPTOMS

Executing a SHOW GET PROMPT command for a check box or radio button in the SHOW clause will cause a general protection (GP) fault.

NOTE: This does not cause a problem in FoxPro versions 2.5, 2.5a, and 2.5b for MS-DOS.

RESOLUTION

Remove the PROMPT clause from the SHOW GET command.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a and 2.5b for Windows. This problem was corrected in FoxPro 2.6 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

The following program demonstrates the problem:

   DIMENSION options[11]
   options[1]=1

   @4.077,22.333 GET options[1] ;
      PICTURE "@*C ";
      SIZE 1.308,4.833 ;
      DEFAULT 0 ;
      FONT " MS Sans Serif", 8 ;
      STYLE "B" ;
      DISABLE

   READ CYCLE SHOW myshow()

   PROCEDURE myshow
      SHOW GET options[1],1 PROMPT 'Left Justify' DISABLE
      RETURN


Additional reference words: FoxWin 2.50 2.50a 2.50b buglist2.50
buglist2.50a
buglist2.50b gpf show get checkbox fixlist2.60
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgGeneral
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 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.