Author Topic: Scripting Dictionary  (Read 3335 times)

adoo

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Scripting Dictionary
« on: May 15, 2012, 06:53:04 pm »
Hi! Every Body,
i try to use the Keys-Methods (Scripting.Dictionary) in Java Script to specify all elements i Add to my ValueMap an unique keys but i don't have many experience with it.
i try this

Code: [Select]
nkey = new ActiveXObject("Scripting.Dictionary");
elements = thePackage.Elements;

for(var i=0; i< elements.Count; i++)
{
  CurrentElement = elements.GetAt(i);
  for(var k=0; k<CurrentElement.PackageID.length; k++)
   {       
      if(nkey== new VBArray(valueMap.Keys()))
      {
       valueMap.Add(nkeys[k], CurrentElement.PackageID);
       }
   }
.....
}
so what am i doing wrong! please help me!