Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddItem() method
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00081942
Message ID:
00081954
Views:
10
>How add two column's values into ComboBox?
>
>Code:
>AddItem("xxx", 1, 1)
>AddItem("yyy", 1, 2)
>
>gives me
>| |yyy|
>|xxx| |
>
>instead
>|xxx|yyy|
>
>Thanx in advance.
>
>Giedrius
Giedrius,

AddItem cannot add two columns, you need to use AddListItem to do that;

WITH THISFORM.MyList
lnNextItem = .NewItemId + 1
.AddListItem("ABC",lnNewItem,1)
.AddListItem("DEF",lnNewItem,2)
ENDWITH

Will give you [ABC] [DEF] as two columns.
Previous
Reply
Map
View

Click here to load this message in the networking platform