Welcome Guest. Please Login or Register. Apr 1st, 2018, 04:24am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
I really thought there was a way to restrict the scope of the files command that allowed more than one file type. Am I wrong?
You are perhaps thinking of FILEDIALOG, which does indeed allow you to specify multiple extensions in the way you suggest. Unfortunately FILES doesn't.
The capabilities of the two statements are governed by the underlying Windows APIs that they call. FILEDIALOG calls the GetOpenFileName API which allows you to pass a filter like "*.txt;*.doc;*.bak" whereas the FILES statement calls the FindFirstFile API which accepts only an ambiguous filespec like "*.txt".
So, sadly, the only solution to your problem is to call FILES twice and merge the returned arrays (or get FILES to return all the files and do your own filtering afterwards).