Posts: 14
Threads: 3
Joined: Sep 2005
How do you get your code to go to another program of qbasic 1.1?
Thanks
There's this doctor, and this boy. They both go fishing. The Boy is the Doctor's son, however the doctor is not his father. Who is the Doctor?"
Posts: 525
Threads: 23
Joined: Oct 2004
You can open the first module in QB, select the code you want to move, then click on the Edit menu and copy (or CTRL-Insert). Then open the new module, and there, select Edit and Paste (or SHIFT Insert) and that will put the code in the new module. :-)
Hope this helps :-) let me know if you have other questions. :-)
Again your riddle, the doctor is the boy's mother ;-). hehe
Posts: 14
Threads: 3
Joined: Sep 2005
no no like this:
Code:
Screen 12
cls
Input "For instructions press (1)" answer%
Print "For new game press (2)"
If answer% = 1 then
locate 1, 40: print "You selected new game"
beep
[Right here i need to go to a new program, like if this program is named: game.bas, i need the next program i want this program to go to is named: game1.bas. How do i do that?]
else
end
end if
yeah, please help
There's this doctor, and this boy. They both go fishing. The Boy is the Doctor's son, however the doctor is not his father. Who is the Doctor?"
Posts: 525
Threads: 23
Joined: Oct 2004
Oh :-). you should be able to do that, in QBasic with a RUN "File.bas" command
Posts: 14
Threads: 3
Joined: Sep 2005
thanks a ton, geesh can qbasic make it any more simplier? lol. again, thanks bro
There's this doctor, and this boy. They both go fishing. The Boy is the Doctor's son, however the doctor is not his father. Who is the Doctor?"
Posts: 1,845
Threads: 44
Joined: Aug 2002
RUN
CHAIN
Don't know if they work in QB1.1 though.
Posts: 488
Threads: 19
Joined: Sep 2005
so if u have the current file, current.bas then you want to open up game.bas, u would put them in same directory and have a line of code saying:
RUN "game.bas"
or would u require a file name of sorts :???:
Posts: 245
Threads: 25
Joined: Sep 2005
ive never used the run command, but i know the chain command works like this:
'(you want to link to the program TEST.bas which is
'located in drive A )
CHAIN A:/test.bas
-yah
Posts: 488
Threads: 19
Joined: Sep 2005
so that wil open test.bas as the current program then :???:
Posts: 245
Threads: 25
Joined: Sep 2005
yes the program open is now test.bas and the program open before that is no longer open.
-yah