Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddItem and ListBoxes
Message
From
03/08/1999 04:23:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
AddItem and ListBoxes
Miscellaneous
Thread ID:
00249129
Message ID:
00249129
Views:
66
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.

TIA,
-Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Next
Reply
Map
View

Click here to load this message in the networking platform