Difference between revisions of "QUIT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
==Class== | ==Class== | ||
Applications | Applications | ||
| Line 36: | Line 33: | ||
// Quit if [ABANDON] was pressed | // Quit if [ABANDON] was pressed | ||
if lastkey()=ctrl('g') | if lastkey()=ctrl('g') | ||
| − | quit | + | quit |
endif | endif | ||
</code> | </code> | ||
| Line 45: | Line 42: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
| + | [[Category:Applications]] | ||
| + | [[Category:Applications Commands]] | ||
Revision as of 14:11, 4 June 2009
Contents
Class
Applications
Purpose
Terminate session
Syntax
QUIT
[TO <command>]
[WITH <expN>]
See Also
Description
The QUIT command closes all open tables, associated index and format files, open program files, the procedure library, and returns control to the operating system.
TO <command>
The optional TO <command> allows an operating system command to be executed after exiting from the Recital session.
WITH <expN>
The WITH clause is used to specify an integer from -1 to 254 to be returned upon exiting. This is useful as an exit code that can be checked by calling programs, command files, or shell scripts.
Example
// Quit if [ABANDON] was pressed if lastkey()=ctrl('g') quit endif
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer