FileList_Add()

Examples


The FileList_Add() function adds a file to a file list.

Syntax

FileList_Add(filelist, full_path {, file_format}{, filename})

Parameters

filelist – A long integer specifying the file list that the file is being added to.

full_path – A string specifying the complete path of the file to be added, including the filename and extension.

file_format – An optional integer parameter that identifies the type of file being added to the file list. The value typically corresponds to one of the following constants:

[spacer]

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 string parameter that contains the filename and extension for the file added to the file list.

Return value

A boolean. The value true indicates the file was added to the list, while false indicates it was not.


Documentation Feedback