Hi,
I am loading the array like this:
if not objRS.eof then
ItemsArray = objRS.GetRows()
FirstRec = LBound(ItemsArray, 2)
LastRec = UBound(ItemsArray, 2)
FirstField = LBound(ItemsArray, 1)
LastField = UBound(ItemsArray, 1)
End If
***********
And I am trying to print the array to atext file like this:
for I = FirstRec to LastRec
filetxt.WriteLine(ItemsArray(I,5) &" "& ItemsArray(I,4) &","& ItemsArray(I,6) )
Next
***************
The above part is giving me an array out of bound (5) error. When I tried to use numbers for the second subscritp like '0', I got 4 fields printed.
Where did I go wrong?
Thanks in advance.
Moheb
I am loading the array like this:
if not objRS.eof then
ItemsArray = objRS.GetRows()
FirstRec = LBound(ItemsArray, 2)
LastRec = UBound(ItemsArray, 2)
FirstField = LBound(ItemsArray, 1)
LastField = UBound(ItemsArray, 1)
End If
***********
And I am trying to print the array to atext file like this:
for I = FirstRec to LastRec
filetxt.WriteLine(ItemsArray(I,5) &" "& ItemsArray(I,4) &","& ItemsArray(I,6) )
Next
***************
The above part is giving me an array out of bound (5) error. When I tried to use numbers for the second subscritp like '0', I got 4 fields printed.
Where did I go wrong?
Thanks in advance.
Moheb