Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddItem and ListBoxes
Message
 
To
03/08/1999 04:23:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00249129
Message ID:
00249164
Views:
25
>I'm using a ListBox with RowSourceType of 0-None and so it needs to be populated with the lstBox.AddItem() method. My question is this: I can't figure out how (if it's even possible) to add a 2nd column to this. It doesn't seem to be working for me. I've tried this:
>
>THIS.AddItem('FirstOne', 1, 1)
>THIS.AddItem('2ndColumn', 1, 2)
>
>and this one:
>
>THIS.AddItem('FirstOne', 1,1, '2ndColumn', 1,2)
>
>Neither method apparently works. BTW, I have to use RowSourceType = 0 because this ListBox needs to use mover-bars.

Use AddListItem instead - it's for multi-column use. Otherwise your method #1 is fine...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform