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
Title:
Slight problem adding items to a List Box
Miscellaneous
Thread ID:
00210807
Message ID:
00210807
Views:
59
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.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform