Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaking Loop with pressing Escape Key

Status
Not open for further replies.

newtoclarion

Programmer
Jul 20, 2011
66
SA
How can I break a loop using Escape or any other key.
I tried to use keycode(),KEYSTATE() but didnt work.

any suggestions will be appreciated
 
Try this code:

LOOP UNTIL KEYBOARD()
IF KEYCODE() = EscKey ! or any other keycode
BREAK
END
END

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top