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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

esc = end

Status
Not open for further replies.

zolken1

Programmer
Oct 25, 2006
17
US
im sure this has been asked but what if i wasnt my program to end by having the user hitting esc. if you could answer that would be great. or if you can give me the link to the specific page, that would help to.
 
Code:
EndPgm = 0

DO WHILE NOT EndPgm
   DO
      a$ = INKEY$
   LOOP UNTIL a$ <> ""

   EndPgm = (ASC(a$) = 27)
LOOP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top