HOME
The Info List - QBasic


--- Advertisement ---



QBasic, a short form of Quick Beginners All purpose Symbolic Instruction Code, is an integrated development environment and interpreter for a variety of BASIC
BASIC
programming languages which are based on QuickBASIC. Code entered into the IDE is compiled to an intermediate representation, and this IR is immediately interpreted on demand within the IDE.[1] It can run under nearly all versions of DOS and 32-bit versions of Windows, or through emulation via DOSBox/DOSEMU on Linux, FreeBSD, and 64-bit versions of Windows.[2] ( QBasic
QBasic
is a DOS program and requires DOS
DOS
or a DOS
DOS
emulator. Windows XP comes with an emulator called DOS
DOS
Virtual Machine, subsequent versions of Windows require an emulator such as DosBox.) For its time, QBasic
QBasic
provided a state-of-the-art IDE, including a debugger with features such as on-the-fly expression evaluation and code modification. It supports various inbuilt functions. Like QuickBASIC, but unlike earlier versions of Microsoft
Microsoft
BASIC, QBasic
QBasic
is a structured programming language, supporting constructs such as subroutines and while loops.[3][4] Line numbers, a concept often associated with BASIC, are supported for compatibility, but are not considered good form, having been replaced by descriptive line labels.[1] QBasic
QBasic
has limited support for user-defined data types (structures), and several primitive types used to contain strings of text or numeric data.[5][6]

Contents

1 History 2 Examples 3 Easter egg 4 See also 5 References 6 External links

History[edit] QBasic
QBasic
was intended as a replacement for GW-BASIC. It was based on the earlier QuickBASIC
QuickBASIC
4.5 compiler but without QuickBASIC's compiler and linker elements. Version 1.0 was shipped together with MS-DOS
MS-DOS
5.0 and higher, as well as Windows 95, Windows NT 3.x, and Windows NT 4.0. IBM recompiled QBasic
QBasic
and included it in PC DOS
PC DOS
5.x, as well as OS/2
OS/2
2.0 onwards.[7] eComStation, descended from OS/2
OS/2
code, includes QBasic
QBasic
1.0 . QBasic
QBasic
1.1 is included with MS-DOS
MS-DOS
6.x, and, without EDIT, in Windows 95, Windows 98
Windows 98
and Windows Me. Starting with Windows 2000, Microsoft
Microsoft
no longer includes QBasic
QBasic
with their operating systems,[8] but can still be obtained for use on newer versions of Windows. QBasic
QBasic
(as well as the built-in MS-DOS
MS-DOS
Editor) is backwards-compatible with DOS
DOS
releases prior to 5.0 (down to at least DOS
DOS
3.20). However, if used on any 8088/8086 computers, or on some 80286 computers, the QBasic
QBasic
program may run very slowly, or perhaps not at all, due to DOS memory size limits. Until MS-DOS
MS-DOS
7, MS-DOS
MS-DOS
Editor and Help required QBasic: the EDIT.COM and HELP.COM programs simply started QBasic
QBasic
in editor and help mode only, and these can also be entered by running QBASIC.EXE with the /EDITOR and /QHELP switches (i.e., command lines Q BASIC
BASIC
/EDITOR and Q BASIC
BASIC
/QHELP). Examples[edit] QBasic
QBasic
came complete with four pre-written example programs. These were "Nibbles", a variant of the Snake game; "Gorillas", an Artillery game; "MONEY MANAGER", a personal finance manager; and "RemLine", a GW-BASIC
GW-BASIC
code line-number-removing program.[1] Easter egg[edit] QBasic
QBasic
has an Easter egg. To see it, press and hold: Left CTRL+Left SHIFT+Left ALT and Right CTRL+Right SHIFT+Right ALT simultaneously after running QBasic
QBasic
at the DOS
DOS
prompt but before the title screen loads: this lists The Team of programmers.[9] On fast modern computers, it is difficult to perform. It is best done on an old PC (preferably one with a working Turbo button, with the switch on to slow the CPU to 4.77 MHz) or in an emulator like Bochs
Bochs
or DOSBox
DOSBox
which can be slowed down. A screenprint can be seen at The Easter Egg Archive ( QBasic
QBasic
page). See also[edit]

Microsoft
Microsoft
Small Basic QB64

References[edit]

^ a b c "Differences Between GW-BASIC
GW-BASIC
and QBasic". 2003-05-12. Retrieved 2008-06-28.  ^ "HOWTO Play With Your Old QBasic
QBasic
Programs on Linux". 2007-03-31. Retrieved 2008-06-28.  ^ "Q BASIC
BASIC
Manual: SUB...END SUB Statement QuickSCREEN". Retrieved 2008-06-28.  ^ "Q BASIC
BASIC
Manual: WHILE...WEND Statement QuickSCREEN". Retrieved 2008-06-28.  ^ "Q BASIC
BASIC
Manual: TYPE Statement QuickSCREEN". Retrieved 2008-06-28.  ^ "Q BASIC
BASIC
Manual: Limits - Names, Strings, and Numbers". Retrieved 2008-06-28.  ^ " Microsoft
Microsoft
BASIC
BASIC
version information". Retrieved 2008-06-12.  ^ " QBasic
QBasic
Missing from Windows 2000". 2007-03-01. Retrieved 2008-06-12.  ^ " QBasic
QBasic
- Developer Credits". 1999-07-23. Retrieved 2008-06-12. 

External links[edit]

Wikibooks has a book on the topic of: QBasic

Runnable QBasic
QBasic
1.1 via the Internet Archive (also contains a whole bunch of programs that can be loaded.) Download Q BASIC
BASIC
1.1 from the Internet Archive (included in the "Old MS-DOS
MS-DOS
Utilities" part of Windows 95
Windows 95
CD-ROM Extras) QB Express – Qbasic and Freebasic programming magazine Jack Thomson, The QBasic
QBasic
Station, archived from the original on 2004-06-04  – created in 1997 (it was one of the oldest QBasic
QBasic
sites on the web.) qb.js: An implementation of Q BASIC
BASIC
in Javascript – allows running QBasic
QBasic
subset (lacks optional legacy syntax with line numbers, LET, etc.) programs online QB64 – a 64-bit compiler implementing the QBasic
QBasic
language with some 64-bit extensions (Windows XP or newer, Mac OS X with Xcode and Xquartz & Linux) Programmed Lessons in QBasic – an introduction QBasic
QBasic
on PGLang[dead link] – an Online environment of QBASIC by qb.js, with some extensions like graphics support and maths functions

v t e

Dialects of the BASIC programming language
BASIC programming language
(list)

Classic

Altair BASIC Applesoft BASIC Atari BASIC Atari Microsoft
Microsoft
BASIC Atari ST BASIC BASICA BASIC
BASIC
A+ BASIC
BASIC
Programming BASIC
BASIC
XE BASIC
BASIC
XL Casio BASIC Chipmunk Basic Color BASIC Commodore BASIC Extended Color BASIC Dartmouth BASIC Disk Extended Color BASIC Family BASIC GFA BASIC GW-BASIC HP BASIC
BASIC
for OpenVMS HP Time-Shared BASIC IBM
IBM
BASIC Integer BASIC Locomotive BASIC Mallard BASIC Microsoft
Microsoft
BASIC MSX BASIC Pure Basic Rocky Mountain BASIC S'- BASIC
BASIC
(Tandy, Casio, Sharp Pocket Computers) ScriptBasic Sinclair BASIC Southampton BASIC
BASIC
System STOS BASIC TI BASIC
BASIC
(TI 99/4A) TI- BASIC
BASIC
(calculators) TI Extended BASIC
BASIC
(aka XBasic) Tiny BASIC Turbo-Basic XL Tymshare SUPER BASIC UBASIC Vilnius BASIC XBasic

Procedure-oriented

AmigaBASIC AMOS BASIC ASIC BBC BASIC Beta BASIC DarkBASIC FreeBASIC FutureBASIC GFA BASIC GLBasic Liberty BASIC Microsoft
Microsoft
Small Basic PowerBASIC PureBasic QBasic QB64 QuickBASIC SmallBASIC SuperBASIC ThinBasic True BASIC Turbo Basic XBasic Xblite Basic4ppc Visual Test B4J

With object extensions

AutoIt Basic For Qt (KBasic) BlitzMax Chipmunk Basic FreeBASIC Gambas GLBasic Monkey X OpenOffice Basic PowerBASIC ProvideX RapidQ REALbasic Run BASIC Visual Basic Visual Basic
Visual Basic
.NET Xojo

For mobile devices

B4X Basic4android (B4A) Basic4ppc GLBasic NS Basic Basic4ios (B4i)

Microsoft

Microsoft
Microsoft
BASIC

MBASIC IBM
IBM
BASIC/BASICA GW-BASIC QuickBASIC QBasic

VBScript Visual Basic VBA Visual Basic
Visual Basic
.NET Embedded Visual Basic VB 5 for Microsoft
Microsoft
Excel 5.0

VSTO VSTA

WordBASIC TRS-80 Basics (Level I, Level II, Level III) Microsoft
Microsoft
Small Basic

Third-party VB-like

B4X Basic For Qt Gambas Hummingbird Basic LotusScript

.