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)
Code archives/Miscellaneous/Display ASCII chart
This code has been declared by its author to be Public Domain code.
Download source code
| 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
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'!