Page 1 of 1

ChooseFile with more options

Posted: Wed May 08, 2019 5:28 am
by plantenkennis
Hello,

I use the ChoosFile function to get a filename:

Code: Select all

ChooseFile( 'Select a photo', 'jpg' )
But is it possible to set more extentions in this function. Something like:

Code: Select all

ChooseFile( 'Selecteer een foto', {'jpg', 'jpeg'} )
This however does not work, now a user can pick any kind of file.

Re: ChooseFile with more options

Posted: Fri May 24, 2019 2:01 pm
by Antonio Linares
René,

Please try it this way:

ChooseFile( 'Selecteer een foto', "jpg,jpeg" )

Re: ChooseFile with more options

Posted: Fri May 24, 2019 6:00 pm
by plantenkennis
Hello Antonio,

Yes, perfect. This does the trick.