TheBestLinks.com
TheBestLinks.com
QBASIC, QBasic, BASIC programming language, Integrated development environment... Print friendly version | Tell a friend
 
Navigation
Search
Toolbox

QBasic

From TheBestLinks.com

(Redirected from QBASIC)
The opening screen of QBasic 1.1
Enlarge
The opening screen of QBasic 1.1

QBasic (an acronym for Quick Beginner's All-purpose Symbolic Instruction Code) is a variant of the BASIC programming language. It is not capable of compiling standalone executables. The source code is compiled to an intermediate form within the integrated development environment (IDE), and this intermediate form is immediately interpreted on demand within the IDE. It was intended as a replacement for GWBASIC, and was shipped together with MS-DOS 5.0 and higher, including Windows 95. QBasic was based on the earlier QuickBASIC 4.5 compiler but without QuickBASIC's compiler and linker elements.

Microsoft stopped shipping QBasic with later versions of Windows. Windows 98 users, however, will find it in the \TOOLS\OLDMSDOS directory of the CD-ROM; on the Windows 95 CD-ROM, it is in the \OTHER\OLDMSDOS directory. It is now only available from Microsoft's website for licensed users of MS-DOS. QBasic provided a state-of-the-art IDE (for its time), including a debugger with features such as on-the-fly expression evaluation and code modification that were still relatively unusual in 2003, more than ten years later.

QBasic was also the subject of several programming books for beginners.

QBasic came complete with a couple of pre-written example games. These were Nibbles (a variant of the Snake game found on most Nokia cellphones) and Gorillas, an explosive-banana throwing game.

Table of contents

Syntax

Like QuickBASIC, but unlike earlier versions of Microsoft BASIC, QBasic was a structured programming language, supporting constructs such as named subroutines and while loops. Line numbers, a concept often associated with BASIC, were supported for compatibility, but were not necessary and not considered good form. QBasic also has support for user-defined data types (structures).


Code Example (displays "Hello, World")

PRINT "Hello, World"

Special Keys

Press Ctrl+Pause to break a running program.
Press F5 to continue a program whose execution was broken.
Press Shift+F5 to restart a program back from the beginning.
Press F4 while program execution is broken to view the run-time screen, then press F4 again to switch back to the code screen.
Press F1 for help.

External links

  • QQN: QBasic/QuickBasic News (http://www.qbasicnews.com/).
  • The QBasic Forum (http://www.network54.com/Hide/Forum/13959/): An incredible forum for QBasic (very active and very clean)
  • QBasic New Zealand (http://qbnz.com/): Some great downloads (many with source code), a forum.
  • Alipha's site (http://www.geocities.com/aliphax/): Inactive site but quite a few useful downloads and articles.
  • QBasic games (http://outer-court.com/basic/qbasic.htm): Open source and freeware programs, some compiled via QuickBASIC 4.5
  • QBasic posts (http://outer-court.com/basic/echo/index.htm): Huge collection of QBasic-related postings with many algorithms
  • Another good QBasic page (http://qbasic.net.tc/)
  • QBASIC news forum (http://forum.qbasicnews.com/index.php): One of the most active forums on QB around
  • Pete's QB Site (http://www.petesqbsite.com/): Back from a four year period of inactivity, and now home to the new QB:Express magazine




de:QBasic sv:QBasic

Related links


Top visited 0 of 0 links

[no links posted yet]

>> place link >>

Discussion

Last posted 0 of 0 messages

[no messages posted yet]

>> post message >>

Watch

You can add this article to your own "watchlist" and receive e-mail notification about all changes in this page.
 
   
Innovate it
This page was last modified 08:45, 1 Oct 2004.
  Content is available under GNU Free Documentation License 1.2.
Powered by MediaWiki