pazalex
15 years agoNew Contributor
Call to Sys.OleObject("Scripting.Dictionary") fails
Hi,
I am working on this project that used to work but it now fails on my workstation (Win XP SP3, TC 7.52.678.7 w/ JScript). TC says: "The specified module could not be found".
We got the code originally from your online help:
function ToScriptArray(theArray)
{
// Uses the Dictionary object to convert a JScript array.
var dictionary = Sys.OleObject("Scripting.Dictionary");
dictionary.RemoveAll();
for (var i in theArray)
{
dictionary.Add(i, theArray);
}
return dictionary.Items();
}
One of the things that has changed is that we switched from IE6 to IE8.
Thanks in advance.
Alex
I am working on this project that used to work but it now fails on my workstation (Win XP SP3, TC 7.52.678.7 w/ JScript). TC says: "The specified module could not be found".
We got the code originally from your online help:
function ToScriptArray(theArray)
{
// Uses the Dictionary object to convert a JScript array.
var dictionary = Sys.OleObject("Scripting.Dictionary");
dictionary.RemoveAll();
for (var i in theArray)
{
dictionary.Add(i, theArray);
}
return dictionary.Items();
}
One of the things that has changed is that we switched from IE6 to IE8.
Thanks in advance.
Alex