Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Command Index > Q

QUIT (Short Name: QUI)

Scroll Prev Top Next More

In a program, use QUIT to close all open program files, IF/ENDIF structures, SWITCH/ENDSWITCH structures, and WHILE/ENDWHILE loops.

 

QUIT

 

Option

 

TO filespec

Specifies the command file that is to run after the QUIT command executes. QUIT TO another codelocked binary command file is also supported. QUIT is only supported with external files and cannot be used with Custom EEPs.

 

About the QUIT Command

 

When the QUIT command runs, it clears the nesting levels R:BASE maintains to control the following two items:

 

Nesting command files called by the RUN commands.

Levels for nesting IF structures, SWITCH structures, and WHILE loops.

 

Note:

 

The QUIT command is not supported in R:Compiler for R:BASE.

 

Examples

 

The following command closes all open command files, IF structures, SWITCH structures, and WHILE loops, then you are returned to the R> Prompt.

 

QUIT

 

The command below closes all open command files, IF structures, SWITCH structures, and WHILE loops, and runs the command file named GETVAL.INV.

 

QUIT TO getval.inv