English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. Blitz Basic (https://eab.abime.net/forumdisplay.php?f=126)
-   -   How to check a DEL button is pressed (https://eab.abime.net/showthread.php?t=112635)

xboxown 27 November 2022 19:20

How to check a DEL button is pressed
 
Hello,

I am using AmiBlitz3. My code is like this retVAL$=Inkey$(1) where the key value is returned to variable retVAL$.

How do I take this variable retVAL$ and use it to compare if a person pressed the ESC key? Thanks in advance.

Daedalus 27 November 2022 21:28

You can look at the ASCII code of retVAL$ using Asc(retVAL$). This will give you the ASCII character code for non-printable characters such as escape, arrow keys, backspace and so on.

DisasterIncarna 27 November 2022 21:43

https://www.asciitable.com/

ESC = 27


All times are GMT +2. The time now is 16:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04293 seconds with 11 queries