Qbasicnews.com
March 29, 2020, 09:49:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: .exe disappear?  (Read 3089 times)
Maverick
New Member

Posts: 4


« on: February 04, 2003, 09:25:54 PM »

ok, i have my program.  It is very simple, i am just starting.  I converted it into an *.EXE file.  Every time i run the EXE though it completes and then immediatly closes.  is there something wrong?

Code:
CLS
INPUT "what is your name?"; name$
IF name$ = "jesse"THEN GOTO 1 ELSE GOTO 2
1: PRINT "Hello Jesse!"
END
2: PRINT "hello, your name is not recognized"
END
[/code]
Logged
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #1 on: February 04, 2003, 09:39:32 PM »

the program finishes?  Are you running the program from a windows shortcut and do you have the shortcut set up to automatically close the window when the program finishes?
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #2 on: February 04, 2003, 09:53:41 PM »

If you run a QB program double-clicking over the EXE file from Windows, the window is closed after the program ends. (This never happens to me 'cause I open a DOS box and work full screen when I am gonna run DOS programs). To avoid it, make your proggie wait for a keypress when it ends:

Code:
' Tail your programs with this:
PRINT "Any key to exit"
SLEEP:k$=INKEY$
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Maverick
New Member

Posts: 4


« Reply #3 on: February 04, 2003, 10:09:36 PM »

thank you, ill try it out...i really appreciate this...and you might be seeing alot of me around here  :cry:
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!