Qbasicnews.com

Full Version: Go to a new program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How do you get your code to go to another program of qbasic 1.1?
Thanks
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
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
Oh :-). you should be able to do that, in QBasic with a RUN "File.bas" command
thanks a ton, geesh can qbasic make it any more simplier? lol. again, thanks bro
RUN
CHAIN

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