I get an error when I try to initialize a new instance of the collection class:
Public Col
Set Col = New Collection.
As far as I can see, this causes an error because you can only use Set [object] = New [Classname] if Classname is a Class ... End Class defined somewhere in the script. But how, then, do I tell VBScript that I want my object to be a collection object?
I'm probably missing something really simple here.
Public Col
Set Col = New Collection.
As far as I can see, this causes an error because you can only use Set [object] = New [Classname] if Classname is a Class ... End Class defined somewhere in the script. But how, then, do I tell VBScript that I want my object to be a collection object?
I'm probably missing something really simple here.