Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding multi column entry to a list box
Message
 
To
06/02/2002 15:35:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616265
Message ID:
00616311
Views:
26
>Hi All,
>
>I know this must have been asked a thousand times, but I'm gonna do it again. Is there a way to add a multi column entry to a listbox when the listbox type is 0 - None or 1 - Value?
>
>Thanks in advance for your help.
>
>Aloha,
>
>James

You can manipulate the listbox items manually in code with AddItem() and AddListItem() methods.

Also, you can easily create multicolumn listbox with RowSourceType = 1-Value by changing the properties in the Property Sheet.

listbox.ColumnCount = 3
listboc.ColumnWidths = "20,50,50"
listbox.RowSourceType = 1
listbox.RowSource = "1,Tree,Green,2,Sky,Blue,3,Soil,Black"

This will give you a listbox with 3 columns and 3 rows of data in it.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform