This page has been moved to the Programmer's Wiki.
Please do not make any changes or additions to this page. Any modifications, if still appropriate, should be made on QuickBasic at the Programmer's Wiki. |
QuickBASIC is a GW-Basic-like platform developed by Microsoft.
Hello World[]
Here is a Hello World program written in QuickBASIC:
CLS PRINT "Hello World"
As QuickBASIC programs run in a DOS environment, the CLS
command is generally used as the first line to remove clutter from the output screen caused by previous runs. The PRINT
command then simply displays its arguments on the screen.
Command Reference[]
The following commands used in QuickBASIC are organized by type.
Program Flow[]
- DO...LOOP
- IF...THEN
- FOR...NEXT
- GOSUB
- GOTO
- REPEAT...UNTIL
- SELECT...END SELECT
- WHILE...WEND
Declarations[]
- DECLARE
- SUB...END SUB
- FUNCTION...END FUNCTION
Device I/O[]
- PRINT USING
- LPRINT
- INPUT
File I/O[]
- OPEN
- WRITE #
- PRINT #
- GET
- PUT
- EOF
String Functions[]
- LEFT
- MID
- RIGHT
- LEN
- INSTR
Graphics[]
- SCREEN
- DRAW
- COLOR
- PALETTE
- PAINT
Error Trapping[]
- ON KEY GOSUB
- ON ERROR GOTO
- RESUME
Data Types[]
Data Type | Maximum Size | Symbol |
---|---|---|
INTEGER | -32,767 to 32,768 | % |
LONG | -2,147,483,648 to 2,147,483,647 | & |
SINGLE | +/-1.401298 * 10^-45 to +/-3.402823 * 10^38 | ! |
DOUBLE | +/-4.940656 * 10^-324 to +/-1.7976931 * 10^308 | # |
STRING | 32,767 characters | $ |
References[]
- Wikipedia's QuickBASIC article.
- QuickBASIC editor help.