Code archives/Miscellaneous/Display ASCII chart

This code has been declared by its author to be Public Domain code.

Download source code

Display ASCII chart by _332007
It's a self running program that displays an ASCII chart with the character and code from 0 to 255.
Graphics 800,600,32,2
j = 0
For i = 0 To 255
 Write Str$(i) + " = " + Chr$(i) + "   "
j = j + 1: If j = 10 Then Print "": j = 0
Next
WaitKey()

Comments

Yo! Wazzup?2007
Thanks for this, I use this a lot for ASCII codes. (Don't ever really want to have to dig out my C programming book just for the appendix :P)


Adam Novagen2007
You know, from what I've heard, it's not necessary to declare the color depth (in your case, 32) when your program's in windowed mode; it automatically runs at the desktop's color setting. Other than that, though, it's a nifty piece a' codin'!


Code Archives Forum