Sub GetJPGFiles
Dim n As Int
Dim File1 As String
Dim lstJPGfiles As List
lstJPGfiles.Initialize
For n = 0 To FileList.Size-1
File1 = FileList.Get(n)
If File1.EndsWith(".jpg") Then
ListView1.AddSingleLine(File1)
lstJPGfiles.Add(File1)
'asd.Append(File1) ' asd (whatever adds file1 to the array)
End If
Next
'Example of a fully Array that i would like to have
'asd = Array As String("IMG-20130112-WA0004.jpg", "IMG-20130112-WA0003.jpg", "IMG-20130112-WA0002.jpg", "IMG-20130112-WA0000.jpg")
Msgbox ("The number of jpg files is .. " & lstJPGfiles.Size,"JPG Files")
End Sub