Sharkky
August 1st, 2003, 07:09 AM
I'm really writting such code:
Dim CurrentHeaders as New Collection 'Global collection
Sub InitCurrentHeaders()
Set CurrentHeaders = New Collection
for i = 1 to 3
CurrentHeaders.Add 0
Next i
End Sub
In the place where I need this collection (after InitCurrentHeaders procedure calling) I'm trying to use my creation:
CurrentHeaders(1) = i
(The same result for CurreentHeaders.Item(1) = i)
Result: Object Requiered Error
But CurrentHeaders is showed in the watch and all its item are set to zero, like it should be.
All action continues inside one module
What should I do?
My hands are already shaking!...
Dim CurrentHeaders as New Collection 'Global collection
Sub InitCurrentHeaders()
Set CurrentHeaders = New Collection
for i = 1 to 3
CurrentHeaders.Add 0
Next i
End Sub
In the place where I need this collection (after InitCurrentHeaders procedure calling) I'm trying to use my creation:
CurrentHeaders(1) = i
(The same result for CurreentHeaders.Item(1) = i)
Result: Object Requiered Error
But CurrentHeaders is showed in the watch and all its item are set to zero, like it should be.
All action continues inside one module
What should I do?
My hands are already shaking!...