Back

Math and String functions

I am currently working on a engineering piece of software and convert old vb6 to c# 4.6

1. I have had quite a few times that I needed to add Math. in front of the converted c# code eg.

Log => Math.Log

This might be the case with other Math functions

2. I have had to change the statement of counting the length of a string and other string functions as follows

Len(string) => string.Length
Mid(string, int, int) => string.Substring(int, int)

This could be the case with other string functions
» Post Comment

Comments (1)

 
No comments, yet. Be the first!

Post Comment

Your Comment :
Commenting is disabled when the portal is unlicensed.
Select...