Jase,
I have attached source code of a program created that allows you to use the arrow keys to select a certain display mode, which is a list of avaiable display modes for the user's system. The program is a bit hefty and moderately advanced. However, I have placed plenty of REM statements within it to help you understand what the program is doing.
There are two types of commands I introduce in the program. The first is string manipulation commands. Since the
checklist string$() command gives you only a string, and no values, then this string must be manipulated to check what each character is, so that each mode string can be seperated as values to switch the display mode.
Lastly, I introduce ASCII character commands. This function must be used to find the true value of each character within the string. This is the only way to divide the string into seperate values.
When I have more time, if you are at a loss of understaning my program, then I will explain the program in tutorial form. I have added in this code snippet below, a program which prints to the screen all ASCII keyboard values. Make use of it.
set display mode 800,600,32
sync on
sync rate 80
do
for t = 1 to 32
set cursor 0,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 33 to 47
set cursor 40,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 48 to 57
set cursor 80,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 58 to 64
set cursor 120,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 65 to 90
set cursor 160,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 91 to 96
set cursor 200,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 97 to 122
set cursor 240,u
print t,";",chr$(t)
inc u,16
next t
u = 0
for t = 123 to 125
set cursor 280,u
print t,";",chr$(t)
inc u,16
next t
u = 0
sync
cls
loop
REMSTART
1)33-47
2)58-64
3)91-96
4)123-125
REMEND
+NanoBrain+