Is there an online convertor from Visual Basic to Javascript?
Solution 1
You can try http://slingfive.com/pages/code/scriptConverter/demo.html. I ran your sample through their trial converter (IE compatible) and it returned
var a; a=1; if(a >2){ a=a+1 // ============================================================================ // This code converted from VBScript to Javascript by the ScriptConverter tool. // Use freely. Please do not redistribute without permission. // Copyright 2003 Rob Eberhardt - [email protected]. // ============================================================================
Solution 2
A search for "vb.net to javascript" turns up JSIL - .NET to JavaScript compiler. Is that what you want? Or maybe http://jsc.sourceforge.net/?
IvanH
Updated on November 06, 2020Comments
-
IvanH over 3 years
I am looking for a tool to convert some simple visual basic functions to Javascript. I know that it is generally very difficult task but I need to convert only a simple constructions e.g.
dim a a=1 if a >2 then a=a+1
to
var a; a=1; if(a>2)a=a+1
I can do it by hand but a tool similar to Convert C# to VB.NET would be great help I am looking for something very simple so even vb vb.net difference doesn't matter too much. I even have some VB6 functions which I need to have in Javascript. I would like to avoid boring edit/search/replace task.