alarm
14 years agoNew Contributor
JavaScript Scripting.Dictionary Keys() and Items() not work...
HI all:
The document says the dictionary Keys() and Items() return a array that hold the values for keys/values
but I cannot retrieve values from return array, fallow is my code
function alarmgo2()
{
dicTmp = new ActiveXObject("Scripting.Dictionary");
dicTmp.add("Abc", "abc");
dicTmp.add("Abd", "abc");
dicTmp.add("Abe", "abc");
dicTmp.add("Abf", "abc");
keys_d = dicCooling.Keys();
for (var index=0; index< dicTmp.Count; index++)
{
Log.Message(keys_d[index]);//it log none in the log
}
}
Please help me!! did I do some thing wrong? or It is TC's BUG?
Have a good day.
AlarmChang