Page 1 of 1

A question regarding TCombobox

Posted: Fri Jun 22, 2007 9:09 pm
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

Posted: Sat Jun 23, 2007 11:30 pm
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

Posted: Sun Jun 24, 2007 3:23 pm
by Enrico Maria Giordano
Ok, thank you.

EMG