BUG: Last Item in a Popup List Is Not Displayed

ID: Q119327

The information in this article applies to:

SYMPTOMS

If you have a popup that meets the following conditions

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

Last Reviewed: June 27, 1995