A small program I made a few days ago to easily
pause/
follow,
stop and
exit a program in QB64 while you are computing things...
DIM SHARED s
, b
, n
, x
, y
, k$
, t0
, ascii
, Status$
's = 0: b = 0: n = 0
b = (1 - a)
s = s + b
n = n + 1
TakeKeyOnTheFly
Status$ = " Finished. Showing info:"
ShowInfoCommon
'IF ascii = 27 THEN Final
'Si ascii = 27:
'IF ascii = 27 THEN
'BEEP
Status$ = " Stopped. Showing info:"
ShowInfoCommon
'END
Status$ = " Paused. Showing info:"
ShowInfoPaused
PRINT n;
" numbers";
" ": y
= s
/ n:
PRINT y;
" is the average.";
ShowInfoCommon
PRINT:
PRINT " Esc to exit. Any other key to continue.";