As I understood from the help file, the filesearch keyword provides two variable, one being an array that contains the filenames, and the number of files found...
How do I code this?
I tryed:
n=filesearch(files,apppath&"\imageset","*.dll")
this gives me a null reference error..
For the moment the dir is empty, so if should return 0, shouldn't it?
Sub Globals
End Sub
Sub App_Start
Form1.Show
AddArrayList("al1")
FileSearch(al1,AppPath,"*.jpg")
For i = 0 to al1.Count - 1
ListBox1.Add(FileName(al1.Item(i))) 'Omit the FileName if you need the complete path.
Next
End Sub