Returns an array of file names matching the SearchPattern specified.
Syntax: GetFiles (SearchPattern As String) As String()
SearchPattern - The folder path which GetFiles will search in.
SearchPattern can include wildcards.
Note: GetFiles will return both files and folders matching the search pattern.
Example:
'Add a RAPIDesktop object named rapi.
Sub Globals
dim files(0) as String
End Sub
Sub App_Start
Form1.Show
rapi.New1
rapi.Connect
End Sub
Sub rapi_Connected
files() = rapi.GetFiles("\SD card\*.*")
msgbox(ArrayLen(files()) & " files found.")
msgbox("First file: " & files(0))
msgbox("Last file: " & files(ArrayLen(files())-1))
End Sub