EasyManua.ls Logo

VTech PreComputer Prestige - Page 62

VTech PreComputer Prestige
93 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
60
Example:
30 PRINT CHR$(68)
RUN
D
GOSUB...RETURN
Line# GOSUB first line number of subroutine.
Line#
Line#
Line#
Line# first line number of subroutine
Line#
Line# RETURN
The GOSUB command tells the computer to GOTO another line number. After the process
has been completed, a RETURN statement is used to send the computer back to the line
immediately after the GOSUB. These statements are used to process a series of commands
that are frequently used.
Example:
30 GOSUB 120
.
.
other program lines
.
.
120 PRINT "WELCOME TO THE"
130 PRINT "PRECOMPUTER PRESTIGE"
140 RETURN

Related product manuals