Wait: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  WAIT=<seconds>
  WAIT=<seconds>


The '''WAIT=''' parameter and [[TIMEOUT]] [[error trap]] can be used with [[INPUT]]/[[RINPUT]] statements to force releasing of records. This feature is useful for multi-user situations.
The '''WAIT=''' parameter and [[TIMEOUT]] [[error trap]] can be used with [[INPUT]]/[[RINPUT]]/[[LInput]] statements to force releasing of records. This feature is useful for multi-user situations.
 
WAIT is located in statement syntax before the colon, and within the quotes of the [[file ref]] section if present.
 
*WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition.
*WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition.
*NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction.
*NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction.
Line 7: Line 10:


Every time the operator presses a key, the clock is reset for WAIT seconds.
Every time the operator presses a key, the clock is reset for WAIT seconds.
====Example====
00140 INPUT #11,FIELDS "10,10,C 10",WAIT=30:X$ TIMEOUT 100


Used in:
Used in:
*[[LInput]]
*[[Input Fields]]
*[[Input Fields]]
*[[Rinput Fields]]
*[[Rinput Fields]]

Latest revision as of 15:51, 14 July 2015

WAIT=<seconds>

The WAIT= parameter and TIMEOUT error trap can be used with INPUT/RINPUT/LInput statements to force releasing of records. This feature is useful for multi-user situations.

WAIT is located in statement syntax before the colon, and within the quotes of the file ref section if present.

  • WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition.
  • NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction.
  • Also, -1 is a special WAIT value that instructs the system to wait forever, if necessary.

Every time the operator presses a key, the clock is reset for WAIT seconds.

Example

00140 INPUT #11,FIELDS "10,10,C 10",WAIT=30:X$ TIMEOUT 100

Used in: