I suggest you ...

Provide a transpiler for VB6 programming to JS

This suggestion is migrated to Developer Community. Please use below link to view the current status.
https://developercommunity.visualstudio.com/content/idea/351564/provide-a-transpiler-for-vb6-programming-to-js.html
Provide a transcompiler to convert the VB6 programming language to JavaScript.

Also do the same in Office for VBA programming.

203 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    14 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Sancarn commented  ·   ·  Flag as inappropriate

        At the moment it'd be impossible unfortunately. The JavaScript APIs are not rich enough, and they likely never will be either. Why? There are huge security risks with giving any web application access to your file system... I doubt therefore we'll ever see a 100% transpiler. But perhaps a simple one could at least be made :)

      • VB6 programming is supported until at least 2025 commented  ·   ·  Flag as inappropriate

        VB6 Programming is supported on Windows, it should be extended to the web.

        The Visual Basic team is committed to "It Just Works" compatibility for Visual Basic 6.0 applications on the following supported Windows operating systems:

        Windows 10
        Windows 8.1
        Windows 7
        Windows Server 2019
        Windows Server 2016
        Windows Server 2012 including R2
        Windows Server 2008 including R2

        The Visual Basic team’s goal is that Visual Basic 6.0 applications continue to run on supported Windows versions. As detailed in this document, the core Visual Basic 6.0 runtime will be supported for the full lifetime of supported Windows versions, which is five years of mainstream support followed by five years of extended support

        https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/visual-basic-6-support-policy

      • Richard Collier commented  ·   ·  Flag as inappropriate

        @Charlie

        I don't know if LegacyConverters still do this. But they used to charge $0.50 for each line of code. Costs soon add up if you have a few hundred thousand lines of VB6 programming.

        Better if MS offered a VB6 to JS transpiler (perhaps based on TypesScript) to allow a developer to keep the source code in VB and transpile to JS.

      • Anonymous commented  ·   ·  Flag as inappropriate

        Yes a VB6/VBA language front-end to JavaScript (or better to TypeScript) would be amazing.
        With an IDE like the VB6 IDE, and equivalent controls to the Microsoft VB6 controls and the VB6 programming language all transpiling to standard JavaScript, this would be a winner.

      • Microsoft VBA programming and VB6 programming support commented  ·   ·  Flag as inappropriate

        Interesting to see Microsoft has made a first (somewhat faltering) step towards adding JavaScript to Microsoft Office.

        It can only be used in Excel, and then only inside formulas.

        Interesting, too, that Microsoft chose JavaScript in preference to any of the .Net languages.

      • Terry Maxwell commented  ·   ·  Flag as inappropriate

        This would be a really great idea. Allow us to migrate VB6 programming and VBA programming to JS.

        @Anonymous - Thanks for the info, I'll go and look at the NSBasic programming language now.

      • Anonymous commented  ·   ·  Flag as inappropriate

        @Joan @Thom C.Blackwell

        The NSBasic programming language ( www.nsbasic.com ) does something similar to this. Compiles VB into JavaScript. It has a VB6 like IDE and controls.
        They claim to have sold 2 million licences.

      • Joan commented  ·   ·  Flag as inappropriate

        This is a good idea. Keep your source code in VB6 or VBA and compile to JS.

      • Thom C. Blackwell commented  ·   ·  Flag as inappropriate

        Or build an IDE for JavaScript modeled exactly on the VBA IDE - which even today is hands down the most user friendly IDE building macros / robotic process automation.

      • Anonymous commented  ·   ·  Flag as inappropriate

        It would be great if you could still use VBA programming and macros in Office365, but have them 'transcompiled' to JS.

      Feedback and Knowledge Base