B4J Question FileChooser - InitialDirectory - Pictures

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings.

Thank you for your replies.

How to set FileChooser - InitialDirectory to Pictures?

B4X:
    Dim FC As FileChooser
    FC.Initialize
    FC.Title="Select Photo"
    FC.InitialDirectory=????????????
    FC.SetExtensionFilter("Image",Array As String("*.jpg","*.png","*.bmp"))
    Dim FileChosen As String
    FileChosen=FC.ShowOpen(MainForm)

I know C:\Users\username/Pictures, but how do I make username generic?

Sandy
 
Last edited:
Top