Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filling a multi-column ListBox
Message
From
16/07/1997 18:10:59
 
 
To
16/07/1997 12:40:48
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00040242
Message ID:
00040310
Views:
41
Elyse,

You really CANNOT do this with AddItem - it is my "pet peeve" with VFP and its documentation!

I strongly suggest that you use the List property to do what you need . List doesn't seem to be an "action" type function, but it actually is!
The undocumented "problem" with AddItem is that each invokation results in a new row being added *BY DESIGN*.
You could achieve success with AddListItem, but if you ever plan on deleting any of the rows, then STAY AWAY FROM THIS ONE TOO! List does anything most people need except to "maintain" an ItemID list.

Good Luck,
Jim N

>>>I have a 2-column ListBox with RowSourceType set to 0 (None). I am trying
>>>to fill it with 2 fields from a table using the AddItem method, but I can't
>>>seem to fill the second column. I want the list to be sorted. I had no
>>>problem filling a 1-column ListBox. Thanks for any help.
>>>
>>>Elyse
>>
>>Did you include the column parameter?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform