Is it possible to use lists in a multi-column capacity.. such as:
Oldname/New Name/Date
Jeff,Bob, 01012008
Lisa,Tina, 02012008
Fred, Barney, 01152008
If so, could someone demonstrate a simple sample for me?
Thanks
Printable View
Is it possible to use lists in a multi-column capacity.. such as:
Oldname/New Name/Date
Jeff,Bob, 01012008
Lisa,Tina, 02012008
Fred, Barney, 01152008
If so, could someone demonstrate a simple sample for me?
Thanks
are you talking about for viewing the data on a form or for data storage in your code? Both of which are fairly easy to implement.
kevin
Just temporarily storing data in my code. I don't want to setup up three different lists. I was hoping to have one list with three elements per row.
set the listbox's .usetabstops property to true + then seperate the 3 columns with vbTab as you add each item to the listbox.
In that case you could create a data Structure to hold one instance of data, then create a List of data structures. Something like this....Quote:
Originally Posted by Bigbearjeff
vb Code:
Dim MyDataList As New List(Of MyData) Private Structure MyData Public OldName As String Public NewName As String Public Dayt As Date End Structure
hth
kevin
vb Code:
private structure columns dim OldName as string dim New Name as string dim Date as date end structure dim list as new list(of columns)
edit: you beat me....
Excellent. Thanks guys. I really appreciate it. It was one of those things I knew I had seen done before, but just could not remember it.
Cheers!