FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) ChooseFile with more options
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
ChooseFile with more options
Posted: Wed May 08, 2019 05:28 AM
Hello,

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

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



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ChooseFile with more options
Posted: Fri May 24, 2019 02:01 PM

René,

Please try it this way:

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: ChooseFile with more options
Posted: Fri May 24, 2019 06:00 PM

Hello Antonio,

Yes, perfect. This does the trick.

Kind regards,



René Koot

Continue the discussion