March 05, 2021, 07:10:32 AM

Author Topic: [bb] Display ASCII chart by _33 [ 1+ years ago ]  (Read 450 times)

Offline BlitzBot

[bb] Display ASCII chart by _33 [ 1+ years ago ]
« on: June 29, 2017, 12:28:39 AM »
Title : Display ASCII chart
Author : _33
Posted : 1+ years ago

Description : It's a self running program that displays an ASCII chart with the character and code from 0 to 255.

Code :
Code: BlitzBasic
  1. Graphics 800,600,32,2
  2. j = 0
  3. For i = 0 To 255
  4.  Write Str$(i) + " = " + Chr$(i) + "   "
  5. j = j + 1: If j = 10 Then Print "": j = 0
  6. Next
  7. WaitKey()


Comments :


Yo! Wazzup?(Posted 1+ years ago)

 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 Novagen(Posted 1+ years ago)

 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'!


 

SimplePortal 2.3.6 © 2008-2014, SimplePortal