02-19-2004, 12:58 AM
I'm looking for some kind of Pause statement for QuickBasic, as whenever I compile a program, it appears for about a second. Then, it closes. This is after i've compiled it. Thankyou for any help.
Problem with QB4.5
|
02-19-2004, 12:58 AM
I'm looking for some kind of Pause statement for QuickBasic, as whenever I compile a program, it appears for about a second. Then, it closes. This is after i've compiled it. Thankyou for any help.
02-19-2004, 01:12 AM
"SLEEP: flush$ = INKEY$", or:
1 IF INKEY$ = "" THEN GOTO 1
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
02-19-2004, 01:18 AM
Thankyou Very Much
02-19-2004, 02:08 AM
Aga you and your GOTOs hehe....
same as two without GOTOs in case you prefer that, I'm not saying its better, just want to show it: Code: DO: LOOP WHILE $INKEY="" But mostly I use SLEEP when I'm testing (later your program might have menues and such, and you won't need it anymore).
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
02-19-2004, 02:47 AM
To keep windows from closing window when program ends
Right- Click your program in the Explorer, go to Properties and Uncheck "Close window at end" (something like this, I'm translating from spanish) To make your program wait for a key to terminate add this last line Code: a$=input$(1)
Antoni
02-20-2004, 05:25 PM
The problem with all those methods is that if there is still something in the buffer or the user is still holding a key down it won't help.
I personally use this one: Code: ' ---=[ Sub ForceWait ]=---
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
02-20-2004, 11:36 PM
You must be compiling from the IDE. You cant pause it when you compile from the IDE. You have two choices:
1. Compile outside the IDE 2. Press F4 and look at the out put screen |
« Next Oldest | Next Newest »
|