I have a variable called propertycount. I would like to create an array the size of the propertycount. Like array(propertyCount). Is this possible, and if so how do i do it. Thanks in advance.
ReDim sArray(iPropertyCount)
sArray(5) = "hello"
sArray(6) = ERROR - Subscript out of range.
%>
I tested this on IIS 5 and it works! I hadn't tried it till you mentioned it. You can't use Dim sArray() but you can use ReDim sArray() to do what you want. If you use Dim, the server reports an error saying that a constant value was expected.
Hope this helps! Brett Birkett B.Comp
Systems Analyst
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.