Read through the code to find commonly reused items. These I translated first and wrote tests to be sure they worked. Including:
1. Error logging to a txt file
2. Connection opening/closing w SQL Server as well as ExecSelect(), ExecUpdate(), in the same connection object. These were functional translations rather than line-by-line.
3. Dot h file replacements like CRLF (Strings.CRLF - see ...)
I also found it helpful to outline the code at the Fox function level. Tools/DocumentView is particularly helpful in Fox. My outlines look like this:
ObjectName
1. Function1()
2. Function2()
____A. Function3() called by Function2
3. Function4()
I pick the most embedded functions, translate them, test them thoroughly and work my way back to the left margin.
1. Error logging to a txt file
2. Connection opening/closing w SQL Server as well as ExecSelect(), ExecUpdate(), in the same connection object. These were functional translations rather than line-by-line.
3. Dot h file replacements like CRLF (Strings.CRLF - see ...)
I also found it helpful to outline the code at the Fox function level. Tools/DocumentView is particularly helpful in Fox. My outlines look like this:
ObjectName
1. Function1()
2. Function2()
____A. Function3() called by Function2
3. Function4()
I pick the most embedded functions, translate them, test them thoroughly and work my way back to the left margin.
Last edited: