Questions tagged [code-conversion]

The process of converting the logic of some source code from its original language/framework to a different language/framework. Not to be confused with porting, which deals with architectures/platforms.

272 questions
-1
votes
0 answers

Correct way to convert a sas proc sql merge to python code

I have a bit of a problem that I'm having trouble solving. My company has a bunch of legacy SAS code that they're converting to a combination of Python and SQL. And there is a merge in some Proc SQL code that I can't figure out how to correctly…
-1
votes
1 answer

after converting c# to vb.net there is an error Syntax error ,Identifier expected,etc

is there a best code solution so that there is no error in the vb.net?. is there a possibility of an error in the conversion? I provide a share link because I failed continuously to post the code c #. LINK GOOGLE DRIVE CODE C# 'code output in…
-1
votes
1 answer

This code outputs different values for Python 3 and Python 2, how to get same result for both?

def mod_inverse_iterative(a, b): x, y, u, v = 0, 1, 1, 0 while a != 0: q = b / a r=b % a m = x - u * q n=y - v * q b, a, x, y, u, v = a, r, u, v, m, n return b, x,…
-1
votes
1 answer

Converting XML manipulation code from VB6 into C#

I am trying to convert this function that was created years ago in VB6 to C# but I am not sure how to go about it. In this VB6 code, I am confused on how to use MSXML2.DOMDocument40 as a parameter in C#. I'm sure it's going to require the use of…
-1
votes
1 answer

T-SQL to Oracle query conversion

I have been trying to convert some SQL Server queries that I wrote over into Oracle. I have my original SQL queries up on pastebin here: https://pastebin.com/Ru19FCzG but I am working through it one block at a time. Here is the block I am working on…
-1
votes
2 answers

How to convert this C# scripts to Javascript

I have a C# script like below: public List BreakIntoConnectedPaths() { List remainVertices = new List(vertices); List paths = new List(); while (remainVertices.Count > 0) { …
ChickenSoups
  • 937
  • 8
  • 18
-1
votes
1 answer

Java, Python - How to convert Java FlatMap into Python LinkedList

I am working on a formulation of transportation problem through Linear Programming. Primarily I searched it on the web and found a code which is written in Java. But, I have to write whole stuff in Python. And I am converting it into Python. I don't…
-1
votes
1 answer

Prerequisites for JSP project

I have developed a software using vb.net. Now as per the client's requirement I have to develop this project as web application using JSP. I am new for JSP. First I want to know, is there any way to convert the vb.net code to JSP? Is there any…
Udhaya
  • 121
  • 1
  • 14
-1
votes
1 answer

Convert jQuery scroll code to pure javascript

I know well jQuery but with pure javascript I have problems. Can you help me to convert jquery code to the javascript. Thanks :) Here is my code. var container = $('.container'); $(window).scroll(function(event) { var scrollTop =…
Aram Mkrtchyan
  • 2,690
  • 4
  • 31
  • 47
-1
votes
1 answer

How to use ScriptControl & load Unicode res file?

How do I convert this VB6 code to Delphi? strConv(a, vbUnicode) and Private cScript As New ScriptControl cScript.Language = "Javascript" cScript.Reset cScript.AddCode StrConv(LoadResData(101, "RSADATA"), vbUnicode) cScript.Run("createRsaKey",…
aurora
  • 11
  • 1
-1
votes
4 answers

Properties with or without private fields

What is more "true": use properties with or without private fields. I.e. 1. class A { int _field; public int Field { get{ return _field;} set{_field = value;} } } 2. class A { public int Field{get;private…
-1
votes
2 answers

How to Convert This C# Event/Delegate Code Into VB.NET (2008 or 2010)

C# to VB.NET Here is the relevant C# Code namespace MyApp { public delegate bool AllocHandlerDelegate(int param1); public interface ILoader { event AllocHandlerDelegate evAlloc; bool Load(); } public class MyLoader : ILoader …
-2
votes
1 answer

Format(rs.Fields(1), "#,###.00000") to C#

I'm converting some VBA code from Excel macro into C# and came across with this line of code. VBA: Format(12356, "#,###.00000") How to translate this to C#?
Veck
  • 125
  • 1
  • 3
  • 13
-2
votes
1 answer

How would I rewrite PCRE regular expressions so that they're compatible with JavaScript?

As part of a security related project written in Node.js, I'm looking at some of the work done by the team behind PHPIDS, specifically their filter list, which is composed of a large amount of regular expressions that matches a variety of different…
-2
votes
1 answer

VBA object to delphi declaration

I have the below VBA code from a vendor website. I managed to import the TLB libraries into a Delphi project and made references to the corresponding unit files. However, I'm struggling to convert the below VBA specific object declaration to Delphi.…
jimsweb
  • 1,082
  • 2
  • 17
  • 37