|
-
Oct 20th, 2002, 05:38 PM
#1
Thread Starter
Hyperactive Member
best way to store paired values:
Hi, I have a list of paired values that are to be retrieved from a database and returned by a function. There will be no set number of pairs returned.
A list of pairs may look like the following;
"http://www.myurl.com" "My homepage"
"http://www.microsofy.com" "Microsofts homepage"
What would be the best way to return this information from a function? I thought of using a 2d array but I would rather just use a collection and a structure so I can reference the collection via a key...
Recomendations welcome 
Cheers
MarkusJ
-
Oct 20th, 2002, 06:13 PM
#2
Addicted Member
Why don't you just dump it into a dataset or a datatable?
Jeremy
-
Oct 20th, 2002, 06:31 PM
#3
Thread Starter
Hyperactive Member
Yep, there's another way I want to try and make it as fast as possible..
-
Oct 20th, 2002, 06:44 PM
#4
A hashtable would be good, it is made to store a name/value pair.
-
Oct 20th, 2002, 10:26 PM
#5
Thread Starter
Hyperactive Member
Cool, that sounds exactly what I am after
Cheers
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
|