Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

CLOSE

action

Closes a file previously opened by the OPEN function.

syntax

CLOSE (file number)

parameter

File number

A numeric expression indicating the file number of the file to close. Possible values range from 1 to 10.

returns

-2

Invalid file number specified

0

File closed

example

IF Close(3)

    Beep

    ? "Error closing file!"

ENDIF