|
-
Jul 8th, 2008, 10:28 AM
#1
Thread Starter
Member
[RESOLVED] List question
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
Jeff
"Maximum Newbocity has been achieved!"
-
Jul 8th, 2008, 11:28 AM
#2
Re: List question
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
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Jul 8th, 2008, 11:32 AM
#3
Thread Starter
Member
Re: List question
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.
Jeff
"Maximum Newbocity has been achieved!"
-
Jul 8th, 2008, 11:37 AM
#4
Re: List question
set the listbox's .usetabstops property to true + then seperate the 3 columns with vbTab as you add each item to the listbox.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 8th, 2008, 11:38 AM
#5
Re: List question
 Originally Posted by Bigbearjeff
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.
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....
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
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Jul 8th, 2008, 11:40 AM
#6
Re: List question
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....
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 8th, 2008, 12:04 PM
#7
Thread Starter
Member
Re: List question
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!
Jeff
"Maximum Newbocity has been achieved!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|