‎02-03-2016 12:04 PM
Hi All,
Can any body tell me how to create an empty MegaCOllection Object and how to insert an item in to it.
‎02-03-2016 02:22 PM
Hi WIm,
In both the cases am getting
Script error "Error(0x800a01a8) : Object required: 'C'" at Line <line num> :
SampleAttribute.MetaAttributeUpdateTool : Microsoft VBScript runtime error
Thanks
‎02-03-2016 02:20 PM - edited ‎02-03-2016 02:48 PM
If you want to create a Megacollection from scratch (i.e. not a collection of objects linked to another), you need to initialise your collection first.
For example :
Dim myCol Set myCol = oRoot.getSelection("")
NB : note that oRoot needs to be defined 😉
Then you can insert any MEGA Object in your collection :
myCol.Insert myMegaObject
Regards
Lionel
‎02-03-2016 01:38 PM
Dim c As MegaCollection
Dim o As MegaObject
c.Insert(o)
‎02-03-2016 01:37 PM
Dim c As MegaCollection
Dim o As MegaObject
Dim result = c.Add(o)