My Homepage
Lastest News
Tutorials
FAQs
QBasic Files
Other Sites
QBasic Forum
QB Chatroom

+ Where can I find QBasic?
+ How can I turn my programs into EXEs?
+ Can QBasic make Windows applications?
+ How do I copy from QB to Windows and vice versa?
+ CALL ABSOLUTE gives a "Subprogram Not Defined" error


Where can I find QBasic?

Did you check the files section of my site?


How can I turn my programs into EXEs?

Qbasic version 4.5 and higher have it built right in! You can download it from my files section to the left.


Can QBasic make Windows applications?

No, QBasic is a DOS programming languages. There is, however, many languages similar to QB that will make Windows apps. Some such languages are Visual Basic, and Liberty Basic.


How do I copy from QB to Windows and vice versa?

Method 1
To copy code from QB, first save the file, and make sure it is saved as text format, if you have QB v4.5 or above. Then, exit out of QBasic (or make it windowed, by pressing alt+enter). Open up Notepad and find the .BAS file in the Open File window. Now the code is in front of you, and you can copy and paste as needed.

To copy from Windows into QB, do the vice versa. Open up Notepad, paste your code in it, and save it with a .BAS extension. Now you are free to open it up in QB.

Method 2
Make sure that QBasic is windowed, if not, press alt+enter. Now, if the toolbar is not at the top of the QBasic window, then right click on the blue title bar (where it says Microsoft QuickBASIC) and go to toolbar (see image). Now you have Mark, Copy, and Paste at your disposal.

Good for small pieces of code. Though longer code becomes a pain to copy/paste this way.


CALL ABSOLUTE gives a "Subprogram Not Defined" error

You need to load QBasic with the /L switch. There are a couple ways to do this. First, you can run QB.BAT if you have version 4.5, or QBX.BAT if you have 7.1. Then you run the BAT file if you need to use ABSOLUTE or INTERRUPT.

Another solution is to create a shortcut for QBasic. Right click on QB and go to Properties.. Then click on the Program tab at the top. Where it says Cmd Line, add /L qb to the end. Now you can click Ok. (See Images)

Do you have an idea for a FAQ? I just need the question, though if you have the answer, I'll accept that too. Send it to here.

<!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet><script language="JavaScript" src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script language="JavaScript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/smb/js/hosting/cp/js_source/geov2_001.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.yahoo.com/visit.gif?us1255336268" alt="setstats" border="0" width="1" height="1"></noscript> <IMG SRC="http://geo.yahoo.com/serv?s=76001067&t=1255336268&f=us-w3" ALT=1 WIDTH=1 HEIGHT=1>