File Requester and multiple file types

BlitzPlus Forums/BlitzPlus Programming/File Requester and multiple file types

Skitchy(Posted 2004) [#1]
AAAARGH! There's nothing in the docs about this so I have to ask what seems like a stupid question.

When you list the file types you want in the B+ native file requester, is there a way of having more than 1 file type visible at once?
For example, if you put
RequestFile("hello","bmp,jpg,png")
you have to *individually* select a file type from the drop-down. So you either have .bmps OR .jpgs OR .pngs visible.
What I want to do is have ALL 3 FILE TYPES listed SIMULTANEOUSLY ie. an 'all images' file requester.

Possible or not?

If not, has anybody written a custom file requester using B+ gadgets that I can have? I'd like to have an image preview as well, but realise the need for custom code in this case :)


Beaker(Posted 2004) [#2]
It's not possible (without userlib). I've requested it quite a few times. Look here:
http://www.blitzbasic.com/Community/posts.php?topic=35425


PantsOn(Posted 2004) [#3]
try this
file$ = requestfile("Select Picture","jpg;*.bmp;*.png")



Skitchy(Posted 2004) [#4]
YES! It works :)
How did you find that out - I thought I'd tried every combination of random symbols ;)

*Somebody* needs to put stuff like this in the docs [hint hint hint]