QBasic Questions

Make comments, ask questions, or just complain about the software on this site. Or comment on any educational software.
Please note that by clicking on links that may appear in these posts that you may be leaving the Dale Harris Educational Software website and that the content of those sites is the sole resposibility of the authors of those sites.

Moderators:daleadmin, Dale Harris, Alan, Andrew

Post Reply
bdude2
QBasic Questions

Post by bdude2 » Mon Jul 04, 2005 1:46 am

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)?

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Mon Jul 04, 2005 6:40 am

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$=""
Image
DHPOS Veteran (from v3.46, July 2002)

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests