Hi Allan,
Here is two different ways to do this in C#:
char a = 'A';
int asc = a; // First way
int asc2 = Convert.ToInt32(a); // Second way
>In VB, this works
>
>Dim MyInt As Integer
>MyInt = Asc("A") ' MyInt is set to 65.
>
>How do I do this in C#?
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi