Iwant to Search Multiple Files

jothis

Active Member
Licensed User
I used This Cde:

AddArrayList("al1")
i=FileSearch(al1,AppPath&"\imgs","*.jpg")

But Iwant To Search Multiple Files Like PDF,JPG,TIFF

Is it Possible?
Can You Help me?
Jothis
:sign0085:
 

klaus

Expert
Licensed User
Longtime User
Just add one line per file type:

AddArrayList("al1")
i=FileSearch(al1,AppPath&"\imgs","*.jpg")
j=FileSearch(al1,AppPath&"\imgs","*.pdf")
k=FileSearch(al1,AppPath&"\imgs","*.tif")

i = number of *.jpg files
j = number of *.pdf files
k = number of *.tif files

Best regards.
 
Top