The TIMEOUT specifies the number of seconds the operating environment waits for terminal input before a timeout condition occurs.
Format
TIMEOUT exp |
Parameter(s)
exp |
Contains the number of seconds to wait. If exp is set to zero, the TIMEOUT waiting feature is turned off. |
Description
Contains the number of seconds to wait. If exp is set to zero, the TIMEOUT waiting feature is turned off.
If a timeout occurs and an ELSE clause is specified on the INPUT statement, the ELSE clause is carried out.
If a timeout occurs and there is no ELSE clause specified on the INPUT statement, the process wraps up all outstanding EXECUTE levels and then wraps up the currently running mvBASIC program. After these wrap ups are complete, a check is made to see if a TIMEOUT item (Proc or cataloged basic program) exists in the account’s master dictionary (MD). If the TIMEOUT item exists, it is executed. If the TIMEOUT item does not exist, the process is logged off. This TIMEOUT item mechanism is used for applications where it would be undesirable for the process to logoff.
Syntax |
Description |
TIMEOUT 30 |
Process logs off after 30 seconds with no terminal input. |
TIMEOUT "LOGGED OFF"" |
Error–an expression cannot be used as parameter. |
TIMEOUT |
Error–number of seconds must be specified. |
See Also