Page 1 of 1

QBasic Questions

Posted: Mon Jul 04, 2005 1:46 am
by bdude2
Since pos is a QBasic program, I have some questions about QBasic.

1. When I compile my programs in QB 4.5 and run them in windows, they auto-close and people can't see the output, is their a command I can use that will stop that? (Other than unticking CLOSE ON EXIT in properties)?

Posted: Mon Jul 04, 2005 6:40 am
by Andrew
That's because your program executes what you tell it to then closes.

If you want it to wait for any key, use something like this at the end of your program:

Code: Select all

DO : LOOP WHILE INKEY$=""