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.
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].
// ============================================================================
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With