Forum Discussion

pazalex's avatar
pazalex
New Contributor
15 years ago

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



 

4 Replies

  • pazalex's avatar
    pazalex
    New Contributor
    Thanks.



     I reinstalled TC but it did not fix the issue.
  • Hello Alexander,



    Please try re-registering Microsoft Scripting Runtime on your machine. Execute the following command:


    regsvr32 %WinDir%\system32\scrrun.dll