Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Additem and multi-column list boxes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263843
Message ID:
00264193
Vues:
26
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform