Adds all files matching the search pattern in the specified path to an ArrayList and
returns the number of files found.
Syntax: FileSearch (ArrayList, Path [,Search Pattern])
If the Search Pattern is omitted FileSearch will return all the files in the directory.
Search Pattern can include '*' and '?'.
* - Finds zero or more characters.
? - Finds exactly on character.
Example: (alFiles is an ArrayList control)
FileSearch (alFiles, "\My Documents", "*.txt")
This example will add all the files with txt extension in My Documents folder (in the
device) to the ArrayList alFiles.