I need to get some information about some files so im trying to build a function that returns 3 information like this:
sub main()
File = getFile(path) 'future code to list all file information on range
end sub
Function getFile(ByVal path as String)
Dim result() as String
Dim Arquivo as File
Set Folder = FSO.getFolder(Path)
For Each File in Folder.Files
result(n) = File.Name
result2(n) = File.DateLastModified
result3(n) = File.ParentFolder
Next
getFile = Result(), Result2(),Result3()???
End function
Is it possible to return the 3 file information in a single funcion?
getFile = Array(Result(), Result2(), Result3())?Array, then yes (as it currently is implicitly).