Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slight problem adding items to a List Box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00210807
Message ID:
00210808
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform