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?

NOBUF

DESCRIPTION

jBASE can buffer for sequential input and output operations. The NOBUF statement turns off this behavior and causes all writes to the file to be performed immediately. The NOBUF statement should be used in conjunction with a successful OPENSEQ statement and before any input or output is performed on the record.

It takes the general form: 

NOBUF file.variable {THEN statements [ELSE statements] | ELSE statements}

If the NOBUF operation is successful, it executes the THEN statements otherwise, executes the ELSE statements. If file.variable is not a valid file descriptor then NOBUF statement fails and the program enters the debugger.

In the following example, if RECORD in DIRFILE can be opened, output buffering is turned off:

OPENSEQ 'DIRFILE', 'RECORD' TO DATA THEN NOBUF DATA
ELSE ABORT


Go back to jBASE BASIC.

Was this article helpful?