ActiveMISC     More ActiveX Products... Site Home

ActiveMISC --- SLib Interface


The SLib interface enables you to use functions or variables implemented in others script file. You can call JavaScript methods from inside a VBScript program, or similarly call VBScript methods from inside a JavaScript program.

Methods
Sample Code

JavaScript calls a VBScript method

var lib=new ActiveXObject("ActiveMISC.SLib");
var vb=lib.Load("myvb.vbs");
vb.SayHelo();
The VBScript File (myvb.vbs)
Function SayHelo()
    Set ac=CreateObject("ActiveMISC.Console")
    ac.Print"Helo!"
End Function