rasoul_ghasemiyan
New Member
Hi,
I used this class wildcardlisting to get the file path that written by DonManfred
His class get list of files on phone and display them with the Log function.
How can I save the path of found files in an array or a string?
For example, I use this:
But str and lst don't contain path of found files. ☹
any answer will be appreciated.
I used this class wildcardlisting to get the file path that written by DonManfred
His class get list of files on phone and display them with the Log function.
How can I save the path of found files in an array or a string?
For example, I use this:
B4X::
Sub Process_Globals
Dim str As String
Dim lst As List
End Sub
Sub Service_Create
lst.Initialize
End Sub
Sub wcl_ListFilesFinish(FileListing As List)
Log("wcl_ListFilesFinish("&FileListing.Size&")")
For i = 0 To FileListing.Size -1
Log(FileListing.Get(i))
str = str & FileListing.Get(i) & CRLF
' OR
lst.Add(FileListing.Get(i))
Next
End Sub
Sub Display
For Each i As String In lst
Log(i)
Next
Log(str)
End Sub
any answer will be appreciated.