vb.net hashtable with mutiple key for 1 value

J

jwiskema

Good Morning,

Maybe someone can help me with this. A colleague of mine is in a
situation where she needs to have multiple keys in a hashtable to get a
single value. The database does not have primary keys, this is why we
need to do this.

Could be make a variable and set that to the multiple key values then
set that as the key?

Any ideas would be appreciated,
Thanks,

~ Hyde ~
 
M

Marina

What are they keys? Are they strings? In which case, you can concatenate
them together with like a | between them.
 
J

jwiskema

Do you have a sample with the |, I am not sure how to concatenate with
that.

Thanks,
~ Hyde ~
 
M

Marina

You don't know how to concatenate strings together?

myKey = var1 + "|" + var2 + "|" + var3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top