2011/02/22

Simple lesson VB.net: Chr in VB.net

We can using Chr function in Vb 6.0 to convert ASCII value to char.
We can using Chr like this in Vb 6.0 :

Dim character As String
character = Chr(97)
This Result is "a".

For the same function in VB.net we can using toChar.
We can using toChar function like this in Vb.net :

Dim character As String
character = Convert.ToChar(97)
This Result is "a"

No comments:

Post a Comment

Your Comment