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.
Questions tagged [code-conversion]
272 questions
0
votes
0 answers
Convert Arduino code for ultrasonic sensor to android code to be used with IOIO board
Is it possible to get the ardunio code for the Me Ultrasonic Sensor in android format?
The code comes from the manufacturer in arduino format but I need to have it in android to be hooked up to a IOIO board not an arduino. I have no I idea how to go…

Mez
- 51
- 1
- 6
0
votes
1 answer
C# exception handler resume next
I’ve been investigating how I can alter the behaviour of c# method execution specifically when an exception occurs to support:
Retry/Continue: to be able to try the same statement again and carry on once successful
Skip/Resume: moves to the next…

JohnB
- 1
- 1
0
votes
1 answer
Sass/Stylus convert a function iteration
I try to pass all my workflow from Sass to Stylus, but I can not convert a function.
Here is the function in sass
@mixin setIconInclude($icon) {
@each $s in $ws_icon-list {
@if nth($s, 1) == $icon {
content:…

Jeremy
- 1,756
- 3
- 21
- 45
0
votes
1 answer
Have to reconvert a program that was converted to RPGLE from ASSET
Before I was even in this town, my Boss (back then would be programmer) developed a program for tracking Intercompany Movement of products, He developed this in ASSET. Fast forward years, ASSET was no longer the program of choice and it was…

TomCusick
- 11
- 1
- 1
- 5
0
votes
1 answer
AWS SDK for iOS: problems with conversion from Swift 2 to Swift 3
I have downloaded the AWS SDK for iOS examples and opened them in XCode 8. Unfortunately there were lots of compiler errors due to the conversion from Swift 3. I fixed most of these but some functions still need fixing.
I am surprised that there is…

mm24
- 9,280
- 12
- 75
- 170
0
votes
1 answer
how does visual foxpro handle date calculation? (comming from java) result for date()-day(date())+1 operation?
what is the correct value for the formula date()-day(date())+1?
if date() returns '2016/5/5'
is it, 2016/5/1? or 2016/4/29?
because when converting code from visual foxpro to java?
following code produces different result.
Calendar today2 =…

vims liu
- 643
- 1
- 9
- 20
0
votes
1 answer
"System"-code to "System.Linq"-code
I am incredibly new to LINQ, in fact... I'm so new I just figured out that everything before the dot is given through to the called method.
using System;
public class Program
{
public static void Main()
{
…

sxbrentxs
- 93
- 7
0
votes
1 answer
Keep or Rework Post-Conversion Simulation of VB's Val in C#
I recently took over a 170k line VB.net project and was instructed to bring it into C#. Not having the time for a full rewrite, I tested several conversion tools. I ended up using Tangible's Instant C#, which in all actuality did an incredible…

Kiel
- 408
- 4
- 13
0
votes
1 answer
How to rewrite this strange VisualBasic switch case to PHP?
I want to rewrite a VisualBasic function into a PHP function :
Public Function Convert_Ariary(ByVal g_Valeurs As Double) As Double
Dim partie_entier As Double
Dim partie_decimale As Double
Dim int_pos As Integer
Dim Var_Symbole As…

pheromix
- 18,213
- 29
- 88
- 158
0
votes
1 answer
Java get() functionality in C#
I am trying to convert some Java to C# and I have a line as follows:
int[][] variableName = get();
What my question is is what does "get();" actually do? There is no function or method in the Java code I am converting called "get()" so I am…

adelphiaUK
- 49
- 1
- 7
0
votes
2 answers
Code Conversion from Objective-C to Swift
I really need help on converting this Objective-C Code to Swift, so that I can implement it into my code. Here's the code
NSLog(@"%@", [@"1 + 2" numberByEvaluatingString]);
I know that numberByEvaluatingString isn't an actual function in…

Epic Defeater
- 2,107
- 17
- 20
0
votes
3 answers
Convert JavaScript to C#
How to convert this JavaScript to C#?