How to get a character ascii code in VB.Net .???
-
Im trying to implement an encryption technique in my collage and i have to get the ascii number of the character to aplly the algorithem to that character .. like in c++ for example .. the ascii code of the a=65 and b=66 and so on .. if any one have an idea about how to get this ascii value in vb.net .. plx reply me .. thanx لا اله الا الله محمد رسول الله
-
Im trying to implement an encryption technique in my collage and i have to get the ascii number of the character to aplly the algorithem to that character .. like in c++ for example .. the ascii code of the a=65 and b=66 and so on .. if any one have an idea about how to get this ascii value in vb.net .. plx reply me .. thanx لا اله الا الله محمد رسول الله
try using Val = ASC(Char) (That's if I remember correctly!) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
try using Val = ASC(Char) (That's if I remember correctly!) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
your answer is completely correct. Asc() function returns ascii code for a character and Chr() function does the reverse: returns the character for an ascii code.