Microsoft KB Archive/119327

{| = BUG: Last Item in a Popup List Is Not Displayed =
 * width="100%"|

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.

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
 * }