CLOSESEQ |
![]() ![]() ![]() |
The CLOSESEQ statement closes an item previously opened using OPENSEQ.
Format
CLOSESEQ file.var {ON ERROR statement(s)}
where
The directory file record or device is closed.
The ON ERROR clause is provided for source program compatibility with other systems and will never be executed by QMBasic programs.
The CLOSESEQ and CLOSE statements can be interchanged without adverse effect in QMBasic programs, however, care should be taken to use the correct statement if portability to other systems is required.
Example
CLOSESEQ STOCK.LIST
This statement closes a directory file record previously opened using OPENSEQ and associating it with STOCK.LIST as the file variable.
See also: NOBUF, OPENSEQ, READBLK, READSEQ, SEEK, WEOFSEQ WRITEBLK, WRITESEQ, WRITESEQF |