1
I developed a C# application using Windows Forms, but wanted to convert to Javascript using Duocode. But it is giving the following errors:
tryduocode.cs(7,14,7,21): error CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
tryduocode.cs(32,18,32,29): error CS1061: 'Form1' does not contain a definition for 'btnTraduzir' and no extension method 'btnTraduzir' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
Maybe I should use Console instead of Windows Forms.
Yeah, you’re right. I made some modifications. I took out all the Windows Forms reference. I switched the Textbox to public variables. I was able to do the conversion. It was really to have an idea of how to write the same code in Java. It’s just a program that reads a sentence and sends it to a character-by-character function and tells the meaning of each letter. Thank you very much.
– Lindomar Lemos
The conversion is not made for the code to be readable in JS, it is only to work there. Do not time it as a basis. Each language has its particularity and you must program in it in its own way.
– Maniero