>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