Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ArrayList of elements of different data type (integer, string).

Status
Not open for further replies.

VladimirKim

Programmer
Jan 20, 2005
49
US
Hi, I have this problem of passing bunch of names of textboxes and values in them in a collection, array, or arraylist or whatever to a method . Values better be integers.
Is it possible to create a 2-dimensional ArrayList that has the first column as a string type, and 2-nd column as an Integer? I know that in Java ArrayList allows that. However, in VB.NET the same technique does not work.
Thanks.
 
make a class that has those two elements and the make an arraylist/collection/array of that.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top