BUG: Last Item in a Popup List Is Not Displayed

Last reviewed: June 27, 1995
Article ID: Q119327
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5x, 2.6
  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SYMPTOMS

If you have a popup that meets the following conditions

  • It is based on an array.
  • It does not have an array item selected as the default.
  • It is defined and activated using the @ ... GET command.

and the first thing you do after the popup is activated is select the last item in the popup list, the item will not be displayed in the popup's selection box.

RESOLUTION

To avoid this problem, see "Workaround" in the "More Information" section below.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. 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. Issue the following command from a program (.PRG) file:

          PUBLIC DIMENSION TSTARY(5)
    
             FOR I = 1 TO 5
             TSTARY(I) = REPLICATE(CHR(I+64),5)
          ENDFOR
    
    

  2. Issue the following commands from a program file or the Command window:

          @ 5,5 GET X PICTURE "@^" FROM TSTARY DEFAULT "" SIZE 1,30
          READ
    

  3. Select the last item in the popup list, which should be "EEEEE". Note that it is not displayed in the popup's selection box.

NOTE: Although the last item ("EEEEE") does not display in the popup selection box, it is stored in the popup variable X. To test this, display X using the "?" command after step 2.

Workaround

The behavior explained in this article will not occur if you select one of the items in the popup list as follows:

   @ 5,5 GET X PICTURE "@^" FROM TSTARY DEFAULT 1 SIZE 1,30


Additional reference words: FoxMac FoxDos FoxWin 2.50 2.50a 2.50b 2.50c
2.60
buglist2.50
buglist2.50a buglist2.50b buglist2.50c buglist2.60
KBCategory: kbprg kbdisplay kbbuglist
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.