FILEDIALOG - How to Select Folder

IF FILEDIALOG(‘Select the Base Directory’, Base_Folder, FILE:Directory)
END
I would expect it to allow me to select a folder, but does not.
What are the flags referred to in the help?

I think your parameter is incomplete, you should try this instead

IF FILEDIALOG(‘Select the Base Directory’, Base_Folder, '*.*',FILE:Directory)
END
1 Like

Also, I strongly suggest adding File:LongName and File:KeepDir (unless you want to change your programs current path).

5 Likes