gojohnnygogogogo
Programmer
hello all,
how can I write this array with this first row being blank ?
(rs = select * from table)
tempArray = oRS.GetRows()
end if
'Create a temp. array of the select statement in VBscript.
Response.Write("<scri" & "pt language=VBScript>" & vbcrlf)
Response.Write("ReDim tempArray(" & Ubound(tempArray, 1) &", " & UBound(tempArray, 2) & "
" & vbcrlf)
For iRows = 0 to UBound(tempArray, 2)
For iCols = 0 to UBound(tempArray, 1)
Response.Write("tempArray(" & iCols & ", " & iRows & "
= " & Chr(34) & Replace(tempArray(iCols, iRows), Chr(34), Chr(34) & " & Chr(34) & " & Chr(34)) & Chr(34) & vbcrlf)
Next
Next
Response.Write("</scri" & "pt>" & vbcrlf)
so my array looks like :
tempArray(0, 0) = ""
tempArray(1, 0) = ""
tempArray(2, 0) = ""
tempArray(3, 0) = ""
tempArray(4, 0) = ""
tempArray(5, 0) = ""
tempArray(0, 1) = "row1col1"
tempArray(1, 1) = "row1col2"
tempArray(2, 1) = "row1col3"
tempArray(3, 1) = "row1col4"
tempArray(4, 1) = "row1col5"
tempArray(5, 1) = "row1col6"
tempArray(0, 2) = "row2col1"
tempArray(1, 2) = "row2col2"
tempArray(2, 2) = "row2col3"
tempArray(3, 2) = "row2col4"
tempArray(4, 2) = "row2col5"
tempArray(5, 2) = "row2col6"
and so on...
is this possible ?
thank you.
how can I write this array with this first row being blank ?
(rs = select * from table)
tempArray = oRS.GetRows()
end if
'Create a temp. array of the select statement in VBscript.
Response.Write("<scri" & "pt language=VBScript>" & vbcrlf)
Response.Write("ReDim tempArray(" & Ubound(tempArray, 1) &", " & UBound(tempArray, 2) & "
For iRows = 0 to UBound(tempArray, 2)
For iCols = 0 to UBound(tempArray, 1)
Response.Write("tempArray(" & iCols & ", " & iRows & "
Next
Next
Response.Write("</scri" & "pt>" & vbcrlf)
so my array looks like :
tempArray(0, 0) = ""
tempArray(1, 0) = ""
tempArray(2, 0) = ""
tempArray(3, 0) = ""
tempArray(4, 0) = ""
tempArray(5, 0) = ""
tempArray(0, 1) = "row1col1"
tempArray(1, 1) = "row1col2"
tempArray(2, 1) = "row1col3"
tempArray(3, 1) = "row1col4"
tempArray(4, 1) = "row1col5"
tempArray(5, 1) = "row1col6"
tempArray(0, 2) = "row2col1"
tempArray(1, 2) = "row2col2"
tempArray(2, 2) = "row2col3"
tempArray(3, 2) = "row2col4"
tempArray(4, 2) = "row2col5"
tempArray(5, 2) = "row2col6"
and so on...
is this possible ?
thank you.