TIP: Click on subject to list as thread! ANSI
echo: cis.hot_topics
to: Mike Guzzi 76576,2715
from: Floyd Resler 72500,2572
date: 1990-07-14 18:20:45
subject: #5197-#Is Basic out of date?

#: 5203 S15/Hot Topics
    14-Jul-90  18:20:45
Sb: #5197-#Is Basic out of date?
Fm: Floyd Resler 72500,2572
To: Mike Guzzi 76576,2715

Exactly! Not only would IF-THEN-ENDIF's be time consuming, it would be code and
memory consuming as well.  My favorite loop is the WHILE-DO.  It makes it real
nice for checking for proper input.  I mean this:
  press=""
  WHILE press"5" DO
  PRINT "Enter choice (1-5) ";
  GET #0,press
  PRINT
  ENDWHILE

  is much better than this:

  10 A$=INKEY$
  20 IF A$="" THEN 10
  30 IF A$"5" THEN 10

 Floyd



There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.