CLS: Clears the screen of all text and graphics. No parameters are needed.
COLOR: Specifies the color scheme to be used; it is followed by two color numbers (COLOR ,) separated by a comma. For example, "COLOR 7,1" changes the color to white over blue.
END: With no parameters, this QBASIC command simply ends the program; it is not necessary to use END on a program's last line, in which it automatically ends, but can be useful for allowing users to exit the program.
FOR/NEXT: The FOR and NEXT commands require a set of program lines to be repeated a specific number of times. The FOR command starts the loop, while NEXT sends the program back to the command following FOR.
GOTO: Used to change to a different position in the QBASIC program code, usually identified by a line number. For example, "GOTO 75".
IF/THEN: The IF and THEN commands activate a particular function or change to a different line number if a particular statement is true, such as: IF DATE$="12-25-2007" THEN PRINT "Merry Christmas!"
INPUT: This useful programming command lets the user enter data which is to be stored in a variable, and may include a prompt. It can also be utilized to read data from an open file.
LOCATE: Moves the cursor to a specified row and column on the screen.
PRINT: This QBASIC programming command, unlike its name suggests, displays text or variable data on the screen. The text should follow it in quotation marks. It can also save data to open files.
RANDOMIZE: Very useful for all programs with commands involving random numbers, using "RANDOMIZE TIMER" prevents random numbers from being the same each time the program is used.
SCREEN: Changes to the QBASIC screen mode identified by the number following the command, as in "SCREEN 9". Different modes have varying text styles, graphics resolutions, and video card/adapter requirements; Windows XP can only use the default mode (zero).
SHELL: Without parameters, SHELL lets the user access the DOS command prompt until he or she types "EXIT", after which the program resumes. On the other hand, it can be followed by a single command to activate, like: SHELL "DIR".
The programming commands and reference instructions provided are based upon QBASIC version 4.5.
Published by Z. Perry
Freelance writer, website operator, and programmer View profile
- A Basic Introduction to Wicca ReligionA basic introduction, by a former student of Wicca. This will cover Wicca as I learned and practiced it - a genuine religion, not a convenient fantasy.
- Alcohol Abstinence Programs; An Overview of the Latest Testing TechnologyWith many Americans involved in alcohol restrictive programs, monitoring compliance was tedious for health care professionals and law enforcement officials. With advances in technology, alcohol consumption is now ea...
- Recommendations for Animated Programs on the Cartoon Network, Nickelodeon and the...There are many animated programs on television, though the Cartoon Network, Nickelodeon and the Disney Channel by far are the biggest networks to focus on them. In this article, I'll tell you my recommendations on wh...
- Do Abstinence-only Programs Work?Highlights several different abstinence-only programs and the findings for each.
- Advertising Methods for Affiliate Programsadvertising methods, advertise affiliate programs, advertising, affiliate programs,
- Programming: Creating Executables
- Using the QuickBASIC Open Command
- Programing in Basic Language
- Programming: QBASIC History Timeline
- Commands in DOS
- How to Use DOS and Common Commands
- Computer Programming Language Comparison





1 Comments
Post a CommentVERY USEFUL SITE !