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?

WEOF

Description

The WEOF statement allows the program to write an EOF mark on an attached tape device. It takes the general form:

WEOF {ON expression}

Where:

expression specifies the device channel to use and should evaluate to a numeric integer argument in the range 0-9, the default value is zero.

If the WEOF fails it then executes the statements associated with any ELSE clause. SYSTEM(0) will return the reason for the failure as follows:

1
there is no media attached to the channel
2
end of media found


A "tape" does not refer to magnetic tape devices only but to any device described previously to jBASE.

If the specified channel has no assigned tape device, it enters the jBASE debugger with an appropriate message.

An example of use is as: 

WEOF ON 5 ELSE
    CRT "No tape device exists for channel 5"
END


Go back to jBASE BASIC.

Was this article helpful?