Wally1 Posted November 25, 2018 Share Posted November 25, 2018 how do I create an endless loop, just like 10 PRINT "HELLO" 20 GOTO 10 better still how do I break out of a loop also because there is no CONTROL-C (break)? i know about DO...WHILE Quote Link to comment Share on other sites More sharing options...
Justin Payne Posted November 25, 2018 Share Posted November 25, 2018 So, I don't know GFA basic but since there are no line numbers, a do-while is a perfect way to do an endless loop for sure but you also want to break out of said loop so I'd generally check for a key press of some sort to jump out. Quote Link to comment Share on other sites More sharing options...
cvdavidsonjr Posted November 25, 2018 Share Posted November 25, 2018 I found this on line it might help GFA-BASIC Reference - Chez Fred freddo.chez.com › GfaBasic › GFABASIC Quote Link to comment Share on other sites More sharing options...
Wally1 Posted November 25, 2018 Author Share Posted November 25, 2018 thanks guys 1 Quote Link to comment Share on other sites More sharing options...
Christos Posted November 25, 2018 Share Posted November 25, 2018 It is do loop. You can do an exit if inkey$ for example to break Quote Link to comment Share on other sites More sharing options...
ggn Posted November 25, 2018 Share Posted November 25, 2018 (edited) do print "hello" loop until inkey$<>"" Edited November 25, 2018 by ggn Quote Link to comment Share on other sites More sharing options...
Wally1 Posted November 25, 2018 Author Share Posted November 25, 2018 ah... great! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.