Programming Reference: Useful QBASIC Commands
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.
Programming Reference: Useful QBASIC Commands
You may also like...
- 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
- A Basic Introduction to Wicca Religion
- Alcohol Abstinence Programs; An Overview of the Latest Testing Technology
- Recommendations for Animated Programs on the Cartoon Network, Nickelodeon and the Disney Channel
Comments
Type in Your Comments Below - (1000 characters left)
Most Commented On



