XLL+ Class Library

CXlMacros::Files

Returns the names of all files in the specified directory or folder

[C++]
static int Files(
   std::vector<CString>& files,
   const char* directory_text = 0
);

Parameters

files

A vector of strings which will be populated with the list of names.

directory_text

Directory_text specifies which directories or folders to return filenames from.

Return value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods