will someone please tell me why I'm getting the 'type mismatch' error on this piece of code. the error comes from the 'for i= 0 to ubound(sysmods)' line. thanks
DIM QRY2, RST2, SYSMODS
QRY2= "select P.PRE_SYSMOD_NO, F.TAPE_NO from FIXPRE P, FIX F where P.SYSMOD_NO ='" & SESSION("SYSMODS"
& "'"_
& " and F.SYSMOD_NO = P.PRE_SYSMOD_NO"_
& " and F.TAPE_NO > '" & TAPE_no & "'"_
& " order by PRE_SYSMOD_NO DESC;"
SET RST2= cnn.Execute(QRY2)
dim myarray(), num, i
num=0
'num =myarray(0)
Response.Write("<table>"
Call gettape(sysmod_no)
DO WHILE NOT(RST2.EOF)
num=num + 1
redim preserve myarray(num)
myarray(num)= rst2("pre_sysmod_no"
SESSION("SYSMODS"
= myarray(num) & "<br>"
SYSMODS=SESSION("SYSMODS"
rst2.movenexT
loop
for i = 0 to UBOUND(SYSMODS)
Response.Write(sysmods(i))
next
DIM QRY2, RST2, SYSMODS
QRY2= "select P.PRE_SYSMOD_NO, F.TAPE_NO from FIXPRE P, FIX F where P.SYSMOD_NO ='" & SESSION("SYSMODS"
& " and F.SYSMOD_NO = P.PRE_SYSMOD_NO"_
& " and F.TAPE_NO > '" & TAPE_no & "'"_
& " order by PRE_SYSMOD_NO DESC;"
SET RST2= cnn.Execute(QRY2)
dim myarray(), num, i
num=0
'num =myarray(0)
Response.Write("<table>"
Call gettape(sysmod_no)
DO WHILE NOT(RST2.EOF)
num=num + 1
redim preserve myarray(num)
myarray(num)= rst2("pre_sysmod_no"
SESSION("SYSMODS"
SYSMODS=SESSION("SYSMODS"
rst2.movenexT
loop
for i = 0 to UBOUND(SYSMODS)
Response.Write(sysmods(i))
next