Learn Quick Basic its real easy before starting learn these commands and texts:
print use print to make text, variables, or number variables to appear on the screen Example : print "hi"
this will make the word hi appear on the screen Example:print a$/a%
this will print the variable/numbervariable a$/a% on the screen. INPUT Example:input "what is your name";a$
this prints what is your name? on the screen and allows you to type and keeps it recorded until the program is stopped. you can use the print command to print it later. COLOR
changes the color of text that is printed COLOR CHART LOCATED IN GRAPHICS SECTION UNDER THE LINE topic. Example : color 4
makes all text after statement red. goto
goto goes to a lone number somewere in your program. Example : goto 1
1 would have to be located somewhere else in the program ON IT'S OWN LINE works best but you can put it on the same line as other commands (as long as it is first). :
the : option allows you to put a statement on the same line as another as if it was on a different line (IT is not needed with a lone goto #). CALL
the call statement activates a sub (a sub is a sub program) you make subs by clicking the "edit" menu then "new sub" funtions work in the same manner. Example : call cow
this opens a sub or function named cow. DO
are used to create a loop in your program. example : Do
Screen use screen and put a number after it (1-12(your computer may not support all of them)) suggestion: use 12 for the # for best results. USE IN PROGRAMS WITH ANY GRAPHICS IN IT OR THEY WILL NOT RUN!!! Example : screen 12
LINE makes a line on the screen line (location 1)-(location 2), color
Example : line (100, 100)-(200, 200),4 This makes a red line go from the 100 by 100 pixel point on your monitor to the 200 by 200 point.
To make a square program a diagonal line and add ,b to make a square and to make & fill a square add ,bf.
NOTE: the colors are ...
||white (The default color is white!)|
the circle command makes a circle on the screen. Example : circle (100,100), (4),8 TYPE
: circle (xaxis,yaxis), (radius), color #
All of the axis used are for the center point. PSET
the pset command makes a dot on the screen. Example : PSET (100,100), 4
this makes a red
dot the size of one pixel. RUN
the run command opens and runs another Qbasic program Example : RUN "C:\a.bas" this opens a.bas in the c drive (if you have a.bas there) you can open files in almost any extension however Qbasic does not like having to go through a lot of folders.
THESE ARE JUST THE MOST COMMON COMMANDS TRY USING THE INDEX IN THE QBASIC HELP FILE!