Explanation
RUN Statement
Runs the current program or a specified program.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
RUN [{linenumber | file$}] |
linenumber | The line number in the current program where execution should begin. If no line number is specified, execution begins at the first executable line. |
file$ | The name of a Basic source file. QBasic assumes a .BAS extension. |
RUN closes all files and clears program memory before loading a program. Use the CHAIN statement to run a program without closing open files. |
'Assumes the program TEST.BAS is in a \DOS directory.
RUN "C:\DOS\TEST.BAS"
See also: | CHAIN |