Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [BlueGUI] openDialog multiple file extensions

Author
Message
El Goorf
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Uni: Manchester, Home: Dunstable
Posted: 14th Nov 2007 14:29
does anyone know how to get multiple file extensions under a single file type in the openDialog? for example, for images, i want "All Image Files" to list jpg's, jpeg's and bmp's, however:

file$ = openDialog("Image Browser","All Image Files | *.jpg, *.jpeg, *.bmp")

or

file$ = openDialog("Image Browser","All Image Files | *.jpg *.jpeg *.bmp")

etc dont do the job; is there an appropriate way of doing this?

http://notmybase.com
All my base are not belong to anyone.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Nov 2007 19:32
You use a semi-colon to separate the file patterns:

"All Image Files|*.jpg;*.jpeg;*.bmp"

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
El Goorf
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Uni: Manchester, Home: Dunstable
Posted: 16th Nov 2007 10:35
ooooooooooh awesome, thanks

http://notmybase.com
All my base are not belong to anyone.

Login to post a reply

Server time is: 2024-05-10 14:05:49
Your offset time is: 2024-05-10 14:05:49