ASCII Code

tehon3299

Centurion
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
How can I print the letter associated with an ASCII code in VB.NET? I want to print out the alphabet with a FOR loop and use 65 for A to start and run til Z or 90. How do I convert the ascii code to character?
 
The .NET-friendly way of doing this (I think) is with text encoding, as follows:

Visual Basic:
Dim c() As Char = System.Text.Encoding.ASCII.GetChars(New Byte() {65})
'c(0) = "A"
 
Back
Top