Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Additem and multi-column list boxes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00263843
Message ID:
00264193
Views:
27
>Fred,
>
>You need to use the AddListItem() method to add multiple columns. The AddListItem() uses the ItemID instead of teh ListIndex to identify the item being added. For example;
>
>
>* List requery method
>LOCAL laArray(3,2)
>laArray(1,1) = "Apples"
>laArray(1,2) = "Fruit"
>laArray(2,1) = "Pears"
>laArray(2,2) = "Fruit"
>laArray(3,1) = "Potatoes"
>laArray(3,2) = "Vegetable"
>
>FOR lnCnt = 1 TO ALEN(laArray,1)
>   This.AddListItem(laArray(lnCnt,1),This.NewItemID + 1,1)
>   This.AddListItem(laArray(lnCnt,2),This.NewItemID,2)
>ENDFOR
>
>
>By putting this code in the requery method for the list you can call it anytime by calling the list's requery.


Thanx, I'll give it a try
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Reply
Map
View

Click here to load this message in the networking platform