[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2019-10-18T00:14:42-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/3848 2019-10-18T00:14:42-05:00 2019-10-18T00:14:42-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=38589#p38589 <![CDATA[Re: is there a hot key to break an endless loop which is running]]>
In a Qbasic program you need to modify your endless loop from:

Code:

Do**insert whateverLoop
To:

Code:

Do**insert whateverif inkey$="X" then resetsystemend if**insert whateverLoop
but replace "X" with the actual key or scan code you want to use to force an exit out of your endless loop. I use "reset" and "system" instead of simply an "end" because "reset" closes all open files and "system" is a better way for me to end programs.

I know its not the most wonderful way to end a program but if your endless loop is rather complex, its a quick and dirty way to go

Statistics: Posted by mikefromca — Fri Oct 18, 2019 12:14 am


]]>
2017-04-10T15:45:24-05:00 2017-04-10T15:45:24-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=25038#p25038 <![CDATA[Re: is there a hot key to break an endless loop which is running]]> of application programming with BASIC.... and I always (and probably always will) find that I have built me a cute little, tight, endless loop.
Most notable was going to top of page on a 1403 printer doing statements... ohhh, that was a fast printer... my question (beating a dead horse),
how can I get a QB64 program running under Win 10 to terminate... CTRL BREAK doesn't work, Control Scroll Lock doesn't work... (no such key on my Logitech K360 wireless keyboard).... however, the Windows famous "Nuclear Option" of terminating a running program works... a bit
of overkill.... was there updates on this subject?

Regards
Dennis/W6UHQ
Herald, CA

Statistics: Posted by W6UHQ — Mon Apr 10, 2017 3:45 pm


]]>
2014-09-11T07:28:39-05:00 2014-09-11T07:28:39-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23107#p23107 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> CTRL+Break does NOT work. However, there is a simple work-a-round. You can simply use CTRL+SCROLL LOCK - this performs the exact same function. :)

FYI

Statistics: Posted by michealey — Thu Sep 11, 2014 7:28 am


]]>
2014-07-12T08:28:01-05:00 2014-07-12T08:28:01-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23083#p23083 <![CDATA[Re: is there a hot key to break an endless loop which is run]]>
Uncheck Notify me when a reply is posted box if you don't want notifications.

Statistics: Posted by burger2227 — Sat Jul 12, 2014 8:28 am


]]>
2014-07-12T06:44:25-05:00 2014-07-12T06:44:25-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23082#p23082 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> Statistics: Posted by gremlin4 — Sat Jul 12, 2014 6:44 am


]]>
2014-07-11T16:06:15-05:00 2014-07-11T16:06:15-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23081#p23081 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> ed

Statistics: Posted by gremlin4 — Fri Jul 11, 2014 4:06 pm


]]>
2014-07-11T15:49:54-05:00 2014-07-11T15:49:54-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23080#p23080 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> Statistics: Posted by burger2227 — Fri Jul 11, 2014 3:49 pm


]]>
2014-07-11T14:46:40-05:00 2014-07-11T14:46:40-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23079#p23079 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> CTRL I can find, but 'break' not.

Statistics: Posted by gremlin4 — Fri Jul 11, 2014 2:46 pm


]]>
2014-07-11T08:53:23-05:00 2014-07-11T08:53:23-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23078#p23078 <![CDATA[Re: is there a hot key to break an endless loop which is run]]> Statistics: Posted by burger2227 — Fri Jul 11, 2014 8:53 am


]]>
2014-07-11T08:11:32-05:00 2014-07-11T08:11:32-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=23077#p23077 <![CDATA[is there a hot key to break an endless loop which is running]]> My question is:- If, in programming in Windows XP and QB, if I inadvertently insert an endless loop into my code and run it before I find out that it is endless, what can I do to stop execution WITHOUT losing the program status wot I've got up till then?

Statistics: Posted by gremlin4 — Fri Jul 11, 2014 8:11 am


]]>