Posts: 4
Threads: 1
Joined: Feb 2003
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]
Posts: 704
Threads: 0
Joined: Dec 2002
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.
Posts: 6,419
Threads: 74
Joined: Mar 2002
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$
Posts: 4
Threads: 1
Joined: Feb 2003
thank you, ill try it out...i really appreciate this...and you might be seeing alot of me around here