13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RUN statementFunctionSyntaxRemarksExampleRUN restarts the· program.RUN[filespec]RUN with no argument causes a <strong>Turbo</strong> <strong>Basic</strong> program to. restartitself All numeric variables (including the elements of arrays) arereset to 0, and string variables are set to the null string.If filespec is included, it is a string expression representing. a.TBC or an .EXE file (produced with the compiler Options menu'sChain or EXE Compile to setting). If filespec has no extension,.TBC is assumed; if it does have an extension, then it is used. Ifrunning or chaining to an .EXE file, you must explicitly append the. EXE extension to your file name.IICompile this program to a file called:MASTER.EXEI input the name SLAVE in responseI to this promptINPUT "Enter the name of the program to RUN: ",N$RUN N$ I run the indicated programEND I end the programI compile this program to SLAVE.TBC with theI Compile to Chain entry in the Options menuPRINT "We are now in the SLAVE program"END Iend the program<strong>Turbo</strong> <strong>Basic</strong> Reference Directory 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!