Jump to content

Array declaration


Recommended Posts


I would like to create an array with 2 elements, for example. When I assign the length explicitly, it works well, but this code does not work:

dim n=2

dim a(n)

a(0) = "first"

a(1) = "second"

response.write a(0)&a(1)

how to set array length dynamically?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...