This is my first tutorial It is about subs!!! whenever I read about subs I was always confused so I will try to make this simple for you!!! Subs: sub is short for sub routines subs are used instead of the goto command.they are much easier to debug than when you use goto. make a sub you have to type DECLARE SUB() for example: DECLARE SUB Whatever () To call a sub you just write the name of the sub where you want it to be called for example: DECLARE SUB Whatever () Whatever this will run the sub Whatever You are not able to use variables within subs unless you use the DIM SHARED command for example: DECLARE SUB Whatever () Whatever DIM SHARED a$ this will allow you to use this variable in the rest of the programing if you want to call a sub under certain conditions then you Would use the IF command!!! for example: IF b$="yes" THEN Whatever this will open the sub Whatever if b$ = yes (go figure!!!) Inside the sub you must have two commands SUB and END SUB(guess what that does!!!) for example: SUB Whatever END SUB here is an example of a program that uses a sub to print someones name DECLARE SUB Yourname () INPUT "Would ya like to play!?!";play$ IF play$ = "yes" THEN Yourname ELSE END DIM SHARED name$ PRINT "Welcome ";name$;"" end 'inside of the sub now SUB Yourname INPUT "What is your name";name$ END SUB 'OUTSIDE OF the sub now SUBs are very useful if you want to have an organized program Clear as mud??? Like the tutorial!?!?! if you have any questions or comments e-mail me @ qbasic@usa.com if the program in this tutorial doesn't work right then e-mail me so I can fix it see ya later EH!!!