HTBasic Help
×
Menu
Index

RUN

Starts program execution.
 
 RUN [line-number | line-label]
 
 
Description:
RUN is executed in two parts, prerun initialization and program execution.
The prerun part reserves memory space for variables declared in DIM, REAL, INTEGER, COMPLEX and COM statements or implied in the program context. Numeric variables are set to zero and string variables are set to zero length strings. Prerun also checks for multi-line syntax errors such as illegal program structure, array references and mismatched COM statements. If prerun detects any errors, they are reported to the user and the program halts.
If prerun detects no errors, the MAIN program is run starting at the beginning or if a program line or label is specified, it starts execution at the specified line. The program line or label must be in the MAIN context. The program runs normally until it encounters a PAUSE, a STOP or END statement, an error or a TRACE PAUSE line.
See Also: