Equinox Online Help - Language Reference - A to Z

Home

FileSearchClose

Applies to
SyntaxFileSearchClose [BufferItem]
Action[Statement] releases operating system resources associated with a previous FileSearch statment.
ScopeUsable anywhere
Notes

If BufferItem was supplied to the FileSearch, it should be supplied to FileSearchClose. After this statement is executed, FileSearchNext will return an error.

Equinox tries to clean up if this statement is not used, however if FileSearch is called many times with BufferItem, unexpected results may occur.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryFile Management
See Also ChooseFile, FileDelete, FileDetails, FileExists, FileHandle, FilePath, FileRename, FileSearch, FileSearchNext, MakeDirectory, RemoveDirectory
Example

An example of the use of FileSearchClose can be found in the entry for FileSearch