BUG: BROWSE FORMAT May Cause Blank Browse Window (162683)



The information in this article applies to:

  • Microsoft Visual FoxPro for Macintosh 3.0b
  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 3.0b
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q162683

SYMPTOMS

If a BROWSE FORMAT command uses a format file that contains a syntax error, the resulting Browse window is blank. Visual FoxPro produces no error message. Earlier versions of FoxPro produce the following error message:
No fields to process
And no Browse window appears.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

Step to Reproduce Behavior

  1. Use the Customer.dbf file located in the Visual FoxPro \Samples\Data folder.
  2. Create a format file by typing "MODIFY COMMAND Test.fmt" (without the quotation marks) in the Command window. Add the following line of code to the file:
          @ SAY 24,24,  company+contact
    						
    This line of code is incorrect intentionally.
  3. Type the following lines in the Command window, pressing the Enter key after each line:

    SET FORMAT TO Test.fmt
    BROWSE FORMAT

  4. A blank Browse window appears.

Modification Type:MajorLast Reviewed:5/10/2003
Keywords:kbBug kbProgramming KB162683