IonicWind Software

IWBasic => General Questions => Topic started by: Brian on April 27, 2011, 03:22:29 AM

Title: Filerequest
Post by: Brian on April 27, 2011, 03:22:29 AM
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
Title: Re: Filerequest
Post by: LarryMc on April 27, 2011, 06:11:15 AM
I believe this will do it for you.

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

LarryMc
Title: Re: Filerequest
Post by: Brian on April 27, 2011, 12:59:45 PM
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