FIX: Browse Format Ignores GET/SAYs with Color Clause

ID: Q124300


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, versions 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 query words: FoxWin FoxDos FoxMac buglist2.50 buglist2.50a buglist2.50b buglist2.50c buglist2.60 fixlist2.60a


Keywords          : 
Version           : 
Platform          : 
Issue type        : 


Last Reviewed: August 24, 1999
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.