Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slight problem adding items to a List Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00210807
Message ID:
00210808
Vues:
23
>This is my first use of a list box so it comes as no surprise to me that I have a problem. Houston... I have a problem...
>
>I have a multi-column list box. I use the commands:
>
>LOCAL pnCount, MyID, MyName, MyPhone
>pnCount = 1
>
>FOR i = 1 to 100
>THISFORM.lstMyList.AddItem (MyID, pnCount, 1)
>THISFORM.lstMyList.AddItem (MyName, pnCount, 2)
>THISFORM.lstMyList.AddItem (MyPhone, pnCount, 3)
>ENDFOR
>
>The correct variables are going into the correct columns, but each time I do the AddItem command the item moves down one row. So I end up with a mess (with each item in the right column, but each on a row of its own). Help please? Thanks much.

You should use AddListItem to fill multi-column listbox.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform