Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How t o Add Item to multicolumn COMBOBOX
Message
From
14/10/1998 06:41:16
 
 
To
14/10/1998 06:23:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146539
Message ID:
00146544
Views:
29
>Hi,
>I try to create ComboBox with 2 columns, but when I use the following code:
>
>myCombo.AddItem("FirstCol Item",1)
>myCombo.AddItem("SecondCol Item",2)
>I have a combo with 2 elements, but 1 column.
>
>I try this:
>myCombo.AddItem("FirstCol Item",1,1)
>myCombo.AddItem("SecondCol Item",1,2)
>I have a combobox with 2 elements with 2 columns where "SecondCol Item" is in second column of first element and "FirstCol Item" is in first column of second element
>
>I try this:
>myCombo.AddItem("FirstCol Item",1,1)
>myCombo.AddItem("SecondCol Item",2,2)
>I have a combobox with 2 elements with 2 columns where "FirstCol Item" is in first column of first element and "SecondCol Item" is in second column of second element
>
>
>What I must write to take a normal 2 columns combo box.
>
>TIA
>
>Boris

Hi, Boris

Try this:
myCombo.AddItem("FirstCol Item",1,1)
myCombo.<b>AddListItem</b>("SecondCol Item",1,2)
Regards
Danijel
Previous
Reply
Map
View

Click here to load this message in the networking platform