Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an online convertor from Visual Basic to Javascript? [closed]

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.

like image 731
IvanH Avatar asked Jul 28 '26 02:07

IvanH


1 Answers

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].
// ============================================================================
like image 61
jac Avatar answered Jul 30 '26 16:07

jac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!