PRB: Browse with Change Doesn't Display in Windows Like MS-DOS

Last reviewed: March 31, 1996
Article ID: Q128556
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

Creating a Partitioned Browse with a Change command displays differently in FoxPro for Windows and Macintosh than it does in FoxPro for MS-DOS.

Creating a Browse with a partition that has the left side in normal browse mode and the right side in the edit or change mode will not always display all the desired fields for editing the selected record. This behavior is especially prevalent if the first field on the browse side is locked. When you press the arrow key to move down though the records, the edit side of the Browse displays part of the current record and part of the previous record. This behavior is different from the behavior on the MS-DOS platform.

RESOLUTION

Use one of the following workarounds:

  • Reissue the Browse each time the record pointer changes by creating a procedure that gets called from an ON KEY LABEL command as in this example:

          ON KEY LABEL dnarrow DO dwn
    

          PROCEDURE dwn
          SKIP
          BROWSE WINDOW test PARTITION 10 LPARTITION LOCK 1 REDIT
          RETURN
    

    NOTE: This causes a noticeable flash of the Browse screen that may be objectionable.

    -or-

  • Use an ON KEY LABEL command as in this example:

          ON KEY LABEL dnarrow DO dwn
    

          PROCEDURE dwn
          SKIP
          KEYBOARD '{leftarrow}'
          KEYBOARD '{rightarrow}'
          RETURN
    

    NOTE: This also causes the browse screen to change, but it is not as noticeable as in the previous workaround.

STATUS

This behavior is by design.

MORE INFORMATION

For more information about similar behavior with a grid under Visual FoxPro for Windows, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q148685
   TITLE     : PRB: Changing Partition Formatting Causes Grid to Jump
               Around

Steps to Reproduce Behavior

On the Windows or Macintosh platforms, do the following steps:

  1. With the USE command, open the Invoices table in the Tutorial subdirectory or folder.

  2. In the Command window, type:

    DEFINE WINDOW test FROM 1,1 TO 12,40

  3. In the Command window, type:

    BROWSE WINDOW test PARTITION 10 LPARTITION LOCK 1 REDIT

  4. Press the DOWN ARROW key. Notice that the edit side of the browse (the right side) shows only the first field of the current record at the bottom while the upper rows display the fields of the previous record.

  5. Repeat steps 1 though 4 in FoxPro for MS-DOS and notice that the edit side of the Browse shows all the fields for the current record.


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60
KBCategory: kbdisplay kbprg kbprb
KBSubcategory: FxprgBrowse


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: March 31, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.