The FileList_Get() function retrieves the file information for a specific position in the file list.
FileList_Get(filelist, index, full_path {, file_format}{, filename})
• filelist – A long integer specifying the file list from which file information is being retrieved.
• index – An integer specifying the file list item to be retrieved from the file list. The value 1 indicates the first item.
• full_path – A returned string containing the full path of the file list item.
• file_format – An optional returned integer that identifies the type of file for the file list item. The value typically corresponds to one of the following constants:
Constant |
Description |
---|---|
TEXTFILE |
A text file |
TABFILE |
A tab-delimited file |
COMMAFILE |
A comma-delimited file |
HTMLFILE |
An HTML file |
PDFFILE |
A PDF file |
XMLFILE |
An XML file |
DOCXFILE |
A Microsoft Word file |
XLSXFILE |
A Microsoft Excel file |
• filename – An optional returned string that contains the filename and extension for the file list item.
A boolean. The value true indicates the file list item was retrieved, while false indicates it was not.