convert this vb to C#

J

jj

Howo do you convert this vb to c#? Asc and Mid functions are not in c#.
any help is appreciated.
If Asc(Mid$(Text, i, 1)) < 128 Then

strTempChar = CType(Asc(Mid$(Text, i, 1)) - 49, String)

ElseIf Asc(Mid$(Text, i, 1)) > 128 Then

strTempChar = CType(Asc(Mid$(Text, i, 1)) + 49, String)

End If
 
G

Guest

I suggest you look at the String class and use Substring method and the
Convert class to convert from one type to another.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top