ChooseFile with more options

ChooseFile with more options

Postby plantenkennis » Wed May 08, 2019 5:28 am

Hello,

I use the ChoosFile function to get a filename:
Code: Select all  Expand view
ChooseFile( 'Select a photo', 'jpg' )

But is it possible to set more extentions in this function. Something like:
Code: Select all  Expand view
ChooseFile( 'Selecteer een foto', {'jpg', 'jpeg'} )
This however does not work, now a user can pick any kind of file.
Kind regards,

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands

Re: ChooseFile with more options

Postby Antonio Linares » Fri May 24, 2019 2:01 pm

René,

Please try it this way:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: ChooseFile with more options

Postby plantenkennis » Fri May 24, 2019 6:00 pm

Hello Antonio,

Yes, perfect. This does the trick.
Kind regards,

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 9 guests