A question regarding TCombobox

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

A question regarding TCombobox

Post by Enrico Maria Giordano »

The following sample doesn't show the string "Other" on the combobox. Is it expected?

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    LOCAL cVar := "Other"

    LOCAL aItems := { "Test 1", "Test 2", "Test 3" }

    DEFINE DIALOG oDlg
 
    @ 1 , 1 COMBOBOX cVar;
            ITEMS aItems

    @ 3, 1 BUTTON "&Close";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL
EMG
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Enrico,

>The following sample doesn't show the string "Other" on the combobox. Is it expected?

I would not expect it. A combobox is supposed to be limited to those choices in the array.

James
Post Reply