Hi I am using an array. I dim the array at the beginning and then redim the array again.
I get this error
This array is fixed or temporarily locked
....
Part of my code goes something like this:
Dim Code(1)
strZ="Select 8 from tblOrders"
set rs = server.CreateObject ("ADODB.recordset"
rs.Open strZ, ADOConn,1,3
rs.moveLast
rs.movefirst
x=0
ReDIM Code(rs.RecordCount)
do until rs.EOF
Response.Write "<TH bgcolor=#cccccc nowrap>" & vbcrlf
Response.Write rs("TPCode"
& rs("TPCodeID"
& vbcrlf
set Code(x)=rs("TPCodeID"
Response.Write "</TH>" & vbcrlf
x = x+1
rs.MoveNext
Loop
Thanks for the help
Z
I get this error
This array is fixed or temporarily locked
....
Part of my code goes something like this:
Dim Code(1)
strZ="Select 8 from tblOrders"
set rs = server.CreateObject ("ADODB.recordset"
rs.Open strZ, ADOConn,1,3
rs.moveLast
rs.movefirst
x=0
ReDIM Code(rs.RecordCount)
do until rs.EOF
Response.Write "<TH bgcolor=#cccccc nowrap>" & vbcrlf
Response.Write rs("TPCode"
set Code(x)=rs("TPCodeID"
Response.Write "</TH>" & vbcrlf
x = x+1
rs.MoveNext
Loop
Thanks for the help
Z