Getting Started
Introduction
Sample Programs
QBasic IDEs
History
Advice
Tools
Mini-Tutorial
Tutorial
Code Snippets

Resources
Web Sites
More Tutorials
Vendors
Books
Magazines
NewsLetters
NewsGroups
Forums
User Groups
Talk Shows
Blogs

GBIC >> QBasic >> Tutorials

QBasic Information Center Tutorial
These tutorials were written to help you get a quick, but thorough, understanding of QBasic - scope, capabilities, and limitations.

Introduction
As a simple introduction to QBasic, I've included the following example along with instructions on how to run it on your PC. The tutorials listed above go into far more detail.

A Simple Program
Just to get you started, here's a quick look at a traditional "Hello World" program.

   name$="Hello World"      # assigns a string value to the variable name$
   print name$              # prints the variable name$ to the screen

Executing a QBasic Program
To run a QBasic program just save it to a file, such as "myprogram.bas", then type in:

    qbasic myprogram.bas    # explicitly uses the compiler "qbasic.exe"

Any filename can be used but .bas is commonly used and will be assumed if no suffix is used.

If you have any suggestions for additions to these tutorials, please let me know.