Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

REWIND

Description

The REWIND statement will issue a rewind command to the device attached to the specified channel. It takes the general form: 

REWIND{ON expression} THEN|ELSE statements

Where:

expression, if specified, should evaluate to an integer in the range 0 to 9. Default is 0.

Note:

If the statement fails to issue the rewind then any statements associated with the ELSE clause are executed. If the statement successfully issues the rewind command then the statements associated with any THEN clause are executed. Either or both of the THEN and ELSE clauses must be specified with the statement.

If the statement fails then the reason for failure can be determined via the value of SYSTEM(0) as follows:

Value
Meaning
1
there is no media attached to the channel
2
an end of file mark was found


Go back  to jBASE BASIC.

Was this article helpful?