October 30, 2025, 05:21:20 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Filerequest

Started by Brian, April 27, 2011, 03:22:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hi,

My latest little masterpiece could potentially need to open .txt, .csv and .xsl files

Is it possible to fashion FILEREQUEST to "see" all these extensions at once, and
then choose any one of them?

Brian

LarryMc

I believe this will do it for you.

filter = "All Files (*.*)|*.txt;*.csv;*.xsl||"

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Larry,

Many thanks - just seen your post. However, I had been tinkling the ivories, and came up with just the same!

filename=FILEREQUEST("Data files",win,1,"Data files (*.txt *.csv *.xls)|*.txt;*.csv;*.xls|Text files (*.txt)|*.txt|CSV files (*.csv)|*.csv|XLS files (*.xls)|*.xls|All Files (*.*)|*.*||","txt",0,sourcepath)

Works a treat - thanks

Brian