You don't put a colon (
after the parameter on return. So...
NOT - gosub sub:
YES - gosub sub
Also, this isn't good...
IF QUIT = BACK
RETURN
ENDIF
All gosub commands need a return, else you get muddled up.
Instead use something like...
IF QUIT <> BACK
END
ENDIF
RETURN
END ends the program straight away, so you don't have to wait for it to run to the end of the code
.
P.s. Use the code button at the top in the future for code, it makes it easy to see apart from your other writing. Just highlight the code and press it
.
EDIT: Oh you have now
.
Also just noticed... use this...
IF TOTAL = QUIT
PRINT "Press any key to QUIT"
WAIT KEY
GOSUB QUIT:
ELSE
IF TOTAL = GO
PRINT "Are you sure you want to GO?"
WAIT KEY
GOSUB WOW:
ENDIF
ENDIF
I recommend you look at my tutorial, it's on the newcomers forum, stickied at the top. It covers basic syntax.
Trying is the first step towards faliure.
The Basics of DBPro Tutorial, on my site now!
Athelon XP 1600 Plus (1.4ghz) - ATI Radeon 9600 Pro - 256mb RAM