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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…