FIX: Browse Format Ignores GET/SAYs with Color Clause

Last reviewed: September 22, 1997
Article ID: Q124300
2.50 2.50a 2.50b 2.60 | 2.50 2.50a 2.50b 2.60 | 2.50b 2.50c
WINDOWS               | MS-DOS                | MACINTOSH
kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Macintosh, version 2.5b, 2.5c

SYMPTOMS

If a FORMAT file contains GET/SAY commands and a COLOR clause is on every GET/SAY, FoxPro generates a divide by zero or overflow error, followed by a general protection (GP) fault after running the BROWSE FORMAT command.

CAUSE

FoxPro completely ignores a GET/SAY containing a COLOR clause when called from BROWSE FORMAT. When every field has COLOR, there are no fields to process, so FoxPro generates the error.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro version 2.6a for MS-DOS, FoxPro version 2.6a for Macintosh, and FoxPro version 2.6a for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a program in FoxPro that contains these two lines:

    @ 1,1 GET company @ 2,1 GET contact COLOR w+/r,n/w

  2. Save the Program as TEST.FMT.

  3. Open the Customer table.

  4. In the Command window type:

    SET FORMAT TO test.fmt BROWSE FORMAT

You will notice that the only field in BROWSE is the COMPANY field. If you add the same COLOR clause to the CONTACT line, the errors mentioned above occur.


Additional reference words: FoxWin FoxDos FoxMac 2.50 2.50a 2.50b 2.50c
2.60 buglist2.50 buglist2.50a buglist2.50b buglist2.50c buglist2.60
fixlist2.60a
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgBrowse
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: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.