tehon3299 Posted March 13, 2003 Posted March 13, 2003 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? Quote Thanks, Tehon
tehon3299 Posted March 13, 2003 Author Posted March 13, 2003 Awesome! That was simple enough. :) Quote Thanks, Tehon
*Gurus* divil Posted March 13, 2003 *Gurus* Posted March 13, 2003 The .NET-friendly way of doing this (I think) is with text encoding, as follows: Dim c() As Char = System.Text.Encoding.ASCII.GetChars(New Byte() {65}) 'c(0) = "A" Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* Bucky Posted March 13, 2003 *Experts* Posted March 13, 2003 Or you could do... Dim c As Char = Convert.ToChar(65) Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.