Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
99
rated 0 times [  100] [ 1]  / answers: 1 / hits: 41182  / 12 Years ago, mon, november 5, 2012, 12:00:00

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.


More From » vb.net

 Answers
6

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].
// ============================================================================

[#82182] Sunday, November 4, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
deanna

Total Points: 84
Total Questions: 86
Total Answers: 107

Location: Cyprus
Member since Wed, Dec 8, 2021
3 Years ago
;