RUN

BASin

RUN

Command/Statement

RUN makes a program run, normally from the first line.

How to use RUN

RUN may be used as a direct command or it may form a statement in a program line. It is optionally followed by a numeric value, for example

RUN 50

If no value follows RUN then the program runs from the first line. If a value is included, it is rounded down to the nearest integer if necessary and the program then runs from this line. If the line does not exist, the program runs from the next line in the program. Note that RUN performs CLEAR before running the program, so that variable values are are erased. To avoid this, use GO TO followed by a line number.

If a program has been saved using LINE, then it runs automaticaly on loading and RUN is not required.

Format

  • RUN [int-num-expr]

See also

Chapter 2.