JScriptTypeInfo Definition

I have the following code in VBScript:

Dim control set control = CreateObject("MSScriptControl.ScriptControl") control.language = "jscript" control.addCode("function test() { return {property: 'test'}; };") Dim result set result = control.Eval("test();") 

I know that the object returned in result is of type JScriptTypeInfo , but I can not find any information regarding the definition of this type, and similar code in Visual Studio C # shows this as {System.__ComObject} in the local residents panel.

Does anyone know what an interface to JScriptTypeInfo type JScriptTypeInfo ?

+7
javascript vbscript
source share
2 answers

There is a similar topic on this forum about a similar problem , maybe this can help you.

+1
source share

I will tell you what I did to handle this type, since I had access to the ASP ASP source pages that I read. The JScriptTypeInfo object was created when the operator new String() (ex: Session( "Data" ) = new String( "Test"); ) was used on the ASP page. If the session object was created only using the String() statement (for example: Session( "Data" ) = String( "Test"); ), then VB.NET can convert the type just fine.

What is it worth?

+1
source share

All Articles