11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CLOSE<br />

Syntax<br />

CLOSE [file.var] [ON ERROR statements]<br />

Description<br />

The <strong>UniBasic</strong> CLOSE command closes a dictionary or data file.<br />

Note: You can use the OPEN command to access an unlimited number of files in a<br />

single UniData process. However, the operating system could limit the number of<br />

files that can be opened across numerous processes and users.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

1-151 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

file.var Specifies a dictionary or data file to close. If you do not specify<br />

file.var, the default file is closed. If no default file is open, the<br />

command has no effect.<br />

A default file is created by omitting the file variable in the<br />

OPEN statement.<br />

ON ERROR statements Specifies statements to execute if a fatal error occurs because<br />

the file is not open.<br />

If you do not specify the ON ERROR clause, the program<br />

terminates under fatal error conditions.<br />

CLOSE Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!