Page 1 of 1

how do i copy and paste in QBASIC?

Posted: Thu Nov 02, 2006 4:11 pm
by jetq111
hey,
How do i copy stuff from the web (like source code) and paste it into QBASIC? I cant figure it out... Can somone plese help me?

thnxs

Posted: Thu Nov 02, 2006 4:17 pm
by bungytheworm
You cant directly.
Copy source you want, paste it on notepad and save it as filename.bas
If you dont like notepad, you can use any normal _text_ editor program.

Important
Dont use longer file names than 8 chars max
When you save, check that notepad saves it as regular text file.

If you accidently save it as filename.txt, you can still open it with QB Ide, just change "*.bas" to "*.txt" and you should see your file there.

Posted: Thu Nov 02, 2006 7:34 pm
by Nodtveidt
You can paste it directly but it doesn't always give the desired results. Always, it would help to specify the version of Windows you're using, as the method varies. In XP, you can right-click on the command prompt's title bar, go to Edit and then click Paste. In 9x, there's actually a Paste button on the command prompt's toolbar that makes it easier.

Posted: Thu Nov 30, 2006 9:10 am
by Skyler
In most versions, I think you just right-click on the screen in windowed mode. That's what I do... Win2K I think.

pasteing to qb

Posted: Tue Jul 01, 2008 12:46 am
by iamdenteddisk
perhaps this would be an inspiration to create a clipboard to use with windows and qb .anyone?

Posted: Wed Jul 02, 2008 8:12 pm
by Ralph
To Paste in QB, click on the left-topmost corner of the windowed QB screen, or just to the left of the QuickBASIC name, choose Edit, Paste, done.

SUBs hae a little problem, in that two, instead of one, END SUB appear at the bottom of each SUB, so, one must be removed.

Also, indentation is sometimes a big bother.

Finally, there are one or two irritating bugs that happen, from time to time.

|Best way is to Paste the code into WordPad, NotePad, or even MS Windows, and save that file as a text file, with the ending .txt. To open in QB, look for .txt files, or, before searching, change its extension to .bas.