PDA

Click to See Complete Forum and Search --> : how to create 2 dimensional arrays with vbscript


Oct 5th, 2000, 05:52 PM
Hi, I need to be able to create a two dimensional array but it doesn't seem as easy as in visual basic. Can I get the method to declare it and also assign values to it? If it's possible to do.

also, I would need to know if you can assign an array element to a variable in vbscript, such as the following.

variable = array(3,2)

Thanks for your time.

Clunietp
Oct 5th, 2000, 10:27 PM
this works fine for me:

dim strMyString
dim myArray(10, 10)

myArray(5, 5) = "HI!"

strMyString = myArray(5,5)

Response.Write strMyString