Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Go to a new program
#1
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?"
Reply
#2
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
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#3
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?"
Reply
#4
Oh :-). you should be able to do that, in QBasic with a RUN "File.bas" command
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#5
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?"
Reply
#6
RUN
CHAIN

Don't know if they work in QB1.1 though.
Reply
#7
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 :???:
Reply
#8
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
Reply
#9
so that wil open test.bas as the current program then :???:
Reply
#10
yes the program open is now test.bas and the program open before that is no longer open.
-yah
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)