CFileList:Close
The Close method closes file searching for the CFileList object and frees memory. It does not delete the CFileList object.
CFileList:Close() |
The following script creates a CFileList object from the file named sFileName. Then it iterates through the file list, returning each name from the list. Note that Next returns the next file name as a string, so you should not hide its return value by using it as a loop counter.
|
-- Create a new CFileList from the file sFileName |
|
-- step through the file list |
|
-- save the next file name |
|
-- list the file name |
-- do something with the file name |
|
|
|
|
|
|
-- close the attached file list but retain object F |
-- get the name of a different file list |
|
|
-- open the new file listwith the same CFileList object |
-- do something else |
|
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.