
-----------------------------------
Stormtrooper
Thu Apr 10, 2003 12:41 pm

how do i set commands for a button?
-----------------------------------
lets say i want to exit a programm and i want just to tap 1 key or something and it will exit how do i do that?

-----------------------------------
Tony
Thu Apr 10, 2003 1:49 pm


-----------------------------------
inside your loop you'll have


if hasch then
getch(c)
end if


if any key is pressed, it will be recorded in variable c (type string(1)) Then if its something like "q" or something then you quit.
