I have two questions.
First why does this generate an error:
Second, why does this:
It looks like I can't declare an array using a variable for the index range. Is there any way around this?
Thanks for your help.
Brian[
First why does this generate an error:
Code:
<%
dim arrayVar(5)
redim arrayVar(7)
%>
Code:
Error Type:
Microsoft VBScript runtime (0x800A000A)
This array is fixed or temporarily locked
/etab/menusections.asp, line 28
Second, why does this:
Code:
<%
dim arrayIndex
arrayIndex = 0
dim arrayVar(arrayIndex)
%>
Code:
Error Type:
Microsoft VBScript compilation (0x800A0402)
Expected integer constant
/etab/menusections.asp, line 27, column 13
dim arrayVar(iSectionCount)
It looks like I can't declare an array using a variable for the index range. Is there any way around this?
Thanks for your help.
Brian[
Code: