Android Question File Dialogue in b4a v5.8

khwarizmi

Active Member
Licensed User
Longtime User
Hi all

I am working on version 5.80 of B4A, how can I display a file dialogue ?
I have tried:
B4X:
Dim fd As FileDialog
fd.FilePath = File.DirRootExternal
Dim sf As Object = fd.ShowAsync("Select file", "Yes", "Cancel", "No", Null, False)
Wait For (sf) Dialog_Result(Result As Int)
If Result = DialogResponse.POSITIVE Then
  Log("File path: " & fd.FilePath)
  Log("File name: " & fd.ChosenName)
End If
But an error occurred in the wait statment.
 

khwarizmi

Active Member
Licensed User
Longtime User
so how can I display a file dialogue in v5.8 ?
 
Upvote 0
Top