Qbasicnews.com

Full Version: Copying
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have 2 programs that i made, and i want to put them together in one program... is there a way to copy the one into another. i want to use it for my final in my class, and it being a final the teacher wont tell me how/if it can be done... any help?

and i want to get text pictures, is there any good sites that anyone knows of? and how would i go about copying that into my program?
Yeh, you do that by typing these commands at the DOS prompt.
Code:
echo. >program1.bas
echo. >program2.bas
Replacing program1.bas and program2.bas with your own program names of course. And don't forget the dot after the echo command.
uhh.. i tried that and it keeps saying "expected end-of-statement"
AND i actually need the code all in one .bas
Korin,

I don't know what sort of pictures you are looking for, but there are a lot of good ones at Webshots Weekly.
This may not even be what you are asking for. :roll:
open 2nd code in notepad, select all, CTRL+C, open 1st code, go to the end, CTRL + V, save.
yeah.. i figured my prob... i had 2 instances of qbasic running.. and.. i guess u cant copy/paste directly from one to another... or i did it wrong.. but i got that fixed and good...
Oh oh oh well... Do this:

In QB, choose "File" and then "DOS Shell" from the menus.

IF you can't see "DOS Shell", you have to turn on full menus first. You do that by choosing "Options" and then "Full Menus". "DOS Shell" will be visible in the "File" menu then.

Once you've picked "DOS Shell", you're at the command prompt. There, type the two commands from my last post.

Then type EXIT, exit from QB, start it again and load your program.
By text pictures i mean something like this:
_________________________
* * * * * *_________________
* * * * * _________________
* * * * * *_________________
_________________________

and that.. is a really horrible representation of an american flag but thats like what i want...
Open File1. Then File > Merge - File2
umm... the 2 program merge thing is done.. what i need now are the text picture thingies...
Pages: 1 2