Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How t o Add Item to multicolumn COMBOBOX
Message
 
To
14/10/1998 11:13:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146539
Message ID:
00146669
Views:
30
>Nevertheless, when you additem to a multicolumn list box you can assign a value to the second, third, etc columns.
>
>>AddListItem can ahndle multicolumns fine, AddItem does not handle multicolumns.

Nancy,

Yes, you can. I just foiund that AddListItem is a more dependable method to use for a few reasons.

1) ItemIds don't change as items are sorted or moved in teh list so the Id you give an itme stays with it.

2) AddListItem can add all columns in the same syntax.

3) The NewItemId property gives you the last ItemID used and it is very easy to simply increment its value to add a new item.

4) You can easily change the values for an item by using the ItemId in assigning the values. If there is already and ItemId of 10 and you AddListItem("Whatever",10,1) you have changed the existing item to a new value.

So, I just decided to retire AddItem() to the "Gee, that's nice" area of my brain and always use AddListItem().
Previous
Reply
Map
View

Click here to load this message in the networking platform