-->

Tuesday, January 16, 2018

Creating a YouTube video in QBasic - YouTube
src: i.ytimg.com

QBasic short form of Quick Beginners All purpose Symbolic Instruction Code is an IDE and interpreter for a variety of the BASIC programming language which is 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. 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. (QBasic is a DOS program and requires DOS or a DOS emulator. Windows XP comes with an emulator called DOS Virtual Machine, subsequent versions of Windows require an emulator such as DosBox.) For its time, 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 BASIC, QBasic is a structured programming language, supporting constructs such as subroutines and while loops. 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. QBasic has limited support for user-defined data types (structures), and several primitive types used to contain strings of text or numeric data.


Video QBasic



History

QBasic was intended as a replacement for GW-BASIC. It was based on the earlier QuickBASIC 4.5 compiler but without QuickBASIC's compiler and linker elements. Version 1.0 was shipped together with MS-DOS 5.0 and higher, as well as Windows 95, Windows NT 3.x, and Windows NT 4.0. IBM recompiled QBasic and included it in PC DOS 5.x, as well as OS/2 2.0 onwards. eComStation, descended from OS/2 code, includes QBasic 1.0. QBasic 1.1 is included with MS-DOS 6.x, and, without EDIT, in Windows 95, Windows 98 and Windows Me. Starting with Windows 2000, Microsoft no longer includes QBasic with their operating systems, but can still be obtained for use on newer versions of Windows.

QBasic (as well as the built-in MS-DOS Editor) is backwards-compatible with DOS releases prior to 5.0 (down to at least DOS 3.20). However, if used on any 8088/8086 computers, or on some 80286 computers, the QBasic program may run very slowly, or perhaps not at all, due to DOS memory size limits. Until MS-DOS 7, MS-DOS Editor and Help required QBasic: the EDIT.COM and HELP.COM programs simply started 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 QBASIC /EDITOR and QBASIC /QHELP).


Maps QBasic



Examples

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 code line-number-removing program.


QBASIC: Introduction | SAVVY TUTORIAL
src: 3.bp.blogspot.com


Easter egg

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 at the DOS prompt but before the title screen loads: this lists The Team of programmers. 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 or DOSBox which can be slowed down. A screenprint can be seen at The Easter Egg Archive (QBasic page).


QBasic Tutorial 8 - Select Case Statements - QB64 - YouTube
src: i.ytimg.com


See also

  • Microsoft Small Basic
  • QB64

6 Ways to Make a Calculator Using QBASIC - wikiHow
src: www.wikihow.com


References


QBasic Tutorial 11 - For Loop - QB64 - YouTube
src: i.ytimg.com


External links

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

Source of article : Wikipedia