How to create collection object in vbscript?

Posted by Onnesh on Stack Overflow See other posts from Stack Overflow or by Onnesh
Published on 2010-05-19T10:05:42Z Indexed on 2010/05/19 10:10 UTC
Read the original article Hit count: 172

Filed under:
|

what should be the parameter for create object the following code

dim a
set a=CreateObject("Collection") //getting a runtime error saying ActiveX 
//component can't create object: 'Collection
a.add(CreateObject("Collection"))
a.Items(0).Add(1)
MsgBox(a.Items(0).count)
MsgBox(a.Items(0).Item(0))

© Stack Overflow or respective owner

Related posts about collections

Related posts about vbscript