Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.exe disappear?
#1
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]
Reply
#2
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?
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.
Reply
#3
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$
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#4
thank you, ill try it out...i really appreciate this...and you might be seeing alot of me around here Cry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)