[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A simple BASIC question
Hmmm. I think this would work:
10 GET A$
20 PRINT ASC(a$)
30 GOTO 10
Run the program, and it should tell you the ASCII value of the character on the
keyboard that you push.
Then, in YOUR program, while looking for the Delete key:
GET A$: IF A$=CHR$(delete) THEN GOTO (Section of code that handles Delete
press)
I think that should work. It is handy to have simple programs like this saved
on your drive. Then when you need to know the value of a key, you can find out
easily. I've written the same type of program in Assembly, which is very
helpful.
Gabriel Morales wrote:
> I once wrote a program on the //e that used the 'Delete' key symbol. Well, I
> lost the copy, but I did write it down and now I don't know how to use the
> 'Delete' key symbol on the IIGS. If someone could be of help...
>
> Sorry about the simplicity of the questions- I'm just getting back into
> programming good 'old Applesoft BASIC.