VBScript to Javascript question 
Author Message
 VBScript to Javascript question

Using VBScript this is how you would create an object of a Visual Basic dll

Dim obj
Set obj=Server.CreateObject("vbProject.vbClass")
obj.methodInClass()
Set obj=Nothing

does anyone know how to do the same thing in  javascript?



Thu, 27 May 2004 19:29:50 GMT  
 VBScript to Javascript question

Quote:

> Using VBScript this is how you would create an object of a visual basic dll

> Dim obj
> Set obj=Server.CreateObject("vbProject.vbClass")
> obj.methodInClass()
> Set obj=Nothing

> does anyone know how to do the same thing in  javascript?

var obj = Server.CreateObject("vbProject.vbClass");

//        OR
//    var oObj = new ActiveXObject("vbProject.vbClass");

obj.methodInClass();
obj = null;

/* JScript *is* case sensitive, so just take care of consistent
variable and/or method calling/naming.

Branimir*/



Fri, 28 May 2004 02:48:17 GMT  
 VBScript to Javascript question
I think this questions should be asked in jscript queue. :-)

Hope it helps.

Regards,
Robin

This posting is provided AS IS, with no warranties, and confers no rights.



Sat, 29 May 2004 10:59:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VBScript to Javascript question

2. Question on VBScript and JavaScript

3. vbscript javascript question

4. server side vbscript /javascript question

5. vbscript / javascript question

6. vbscript => javascript or javascript => vbscript ?

7. How to call a macro from Vbscript or Javascript

8. Trying to call Javascript from VBscript

9. passing javascript variable into asp variable using vbscript

10. why javascript instead of vbscript?

11. JavaScript vs. VBScript

12. Passing a vbscript variable to a javascript function

 

 
Powered by phpBB® Forum Software