DOCUMENT:Q121724  10-NOV-1994  [FOXPRO]
TITLE   :BUG: LIST Popup Hangs on Duplicate Field Value
PRODUCT :Microsoft FoxPro
PROD/VER:2.5x 2.60 2.60a
OPER/SYS:WINDOWS
KEYWORDS:kbprg kbbuglist

---------------------------------------------------------------------
The information in this article applies to:

- Microsoft FoxPro for Windows versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
---------------------------------------------------------------------

SYMPTOMS
========

When a List popup is defined with the PROMPT FIELD option in the Screen
Builder, and the field displayed in the list box is the key field for that
database and contains duplicate records, the navigation buttons no longer
function when a duplicate field is reached.

RESOLUTION
==========

To resolve the problem of the navigation buttons hanging in the list
popup, you must ensure that the record values in the field referenced in
the list are unique for each record in the file.

STATUS
======

Microsoft has confirmed this to be a problem in FoxPro versions 2.5 and
2.6 for Windows. We are researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes
available.

MORE INFORMATION
================

Steps to Reproduce Problem
--------------------------

1. Use the CUSTOMER database in the Tutorial subdirectory.

2. Create a new screen and use the Quick Screen option from the Screen
   Menu to insert all the fields.

3. Create a List popup from the Screen Builder toolbar in Windows.

4. Select the From Field option in the List Items dialog box.

5. Choose the COMPANY field from the CUSTOMER database.

6. Place COMPANY as the variable for the list.

7. Size the field on the screen.

8. Create push button controls on the screen for top, next, prior, and
   bottom ensuring that the SHOW GETS command is in the VALID.

9. From the Database Menu, choose Setup.

10. Create an Index Key for the COMPANY field and set the order to the
    key.

11. Close and exit the Database Menu by pressing the OK push button.

12. From the Screen Menu, choose Screen Layout.

13. Choose the Save option of the Environment dialog box.

14. Press the OK push button to return to the screen.

15. From the Program Menu, choose Generate.

16. Select the File Menu menu and Close File option.

17. Use the CUSTOMER database from the command window or File Open
    dialog box.

18. From the Command Window, type the following commands:

    SCATTER MEMVAR
    APPEND BLANK
    GATHER MEMVAR
    USE

19. From the Run Menu, choose Screens.

20. Choose the screen from the file dialog box.

21. Use the push buttons to navigate in the list popup.

22. When a duplicate record is displayed in the List popup, the push
    buttons function incorrectly, hanging in the List popup containing
    the duplicate records.

Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a freeze list
popup windows
KBCategory: kbprg kbbuglist
KBSubcategory:

=============================================================================

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.

Copyright Microsoft Corporation 1994.