Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)
The statement is used to terminate a read statement when no data has been read in a specified time period. It takes the general from:
file.variable specifies a file opened for sequential access.
time is an expression that evaluates to the number of seconds the program should wait before terminating the READSEQ statement.
If either file.variable or time evaluates to null, the TIMEOUT statement fails and the program enters the debugger.
An example of use is as:
OPENSEQ "SLIPPERS" TO FILE_VAR ELSE ABORT 201 TIMEOUT FILE_VAR, 10 READBLK VAR1 FROM SLIPPERS, 15 THEN CRT VAR1 ELSE CRT "TIMEOUT OCCURRED" END
Go back to jBASE BASIC.
Go back to Programmers' Reference Guide