ASC() in C#
-
Hello, I am looking for the C# equiv of the VB ASC() function. I also believe some of my chars are extended chars above 127. I tried i = Convert.ToInt32('???') but this doesnt seem to work on extended chars.
You can have access to every VB.Net function by just adding a referece to visulbasic.dll or visulbasicruntime(or some thing like this, I don't remember!) and using it in your code.
Don't forget, that's
Persian Gulf
not Arabian gulf!
-
You can have access to every VB.Net function by just adding a referece to visulbasic.dll or visulbasicruntime(or some thing like this, I don't remember!) and using it in your code.
Don't forget, that's
Persian Gulf
not Arabian gulf!
You should just be able to do this:
char myCharacter = 'a'; int myASC = (int)myCharacter;
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989 -
You should just be able to do this:
char myCharacter = 'a'; int myASC = (int)myCharacter;
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989 -
Bo Hunter wrote: No you can not So how do you do it? I'm sure they wouldn't have excluded the capability from the C# libraries... :confused:
you can do it. run it for yourself.