Post Reply 
How to handle "On" key - & - Safe file storage
10-25-2017, 09:33 PM
Post: #9
RE: How to handle "On" key - & - Safe file storage
(10-25-2017 09:02 PM)Joe Horn Wrote:  It always generates a system interrupt, but will not interrupt a running program if an IFERR is active. Inside an IFERR, pressing ON generates an error (ERRN = #0) and branches to the THEN clause. This lets the programmer control what happens when ON is pressed.

Ah, very nice! That solves it then, thanks! Can be demonstrated like this:
Code:
EXPORT TEST_ON()
BEGIN
  LOCAL m;
  IFERR m:=WAIT(-1); THEN
    m:=46;
  END;
  MSGBOX(m);
END;
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to handle "On" key - & - Safe file storage - Jacob Wall - 10-25-2017 09:33 PM



User(s) browsing this thread: 1 Guest(s)