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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assosiative array in vb.net 1

Status
Not open for further replies.

cjburkha

Programmer
Jul 30, 2004
76
US
Hi,

In javascript I can do this

var myArray = new Array();
myArray['Steve'] = 'Male';

I can't remember this syntax in vb.net.

If I remember, it is a class, but system.array is not helping me.

Any help, leads, or links are appriciated.

CJB
 
Hi ya

Try using a NameValueCollection.

Dim stuff as New System.Collections.Specialized.NameValueCollection
stuff("jimbob") = "hello"
Response.Write(stuff("jimbob").ToString())

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top