IonicWind Software

IWBasic => General Questions => Topic started by: Brian on December 16, 2013, 11:33:02 AM

Title: Puzzled...
Post by: Brian on December 16, 2013, 11:33:02 AM
Hi,

I'm using this call: dir=FINDOPEN(GETSTARTPATH+"*.xl*")

I would expect this to find files named "filename.xls" or "filename.xlsx" - instead it only finds
"filename.xlsx"

What am I doing wrong?

Brian

Note: I know what I was doing wrong . . . there wasn't a file with an extension of .xls,
just one with .xlsx - Duh! Not puzzled, but puddled!
Title: Re: Puzzled...
Post by: Sam on January 17, 2014, 07:57:36 PM
Brian, try *.xl?

I think * assumes more than one character. ? is just one character.
Title: Re: Puzzled...
Post by: LarryMc on January 17, 2014, 10:09:54 PM
Quote from: tennisbum on January 17, 2014, 07:57:36 PM
Brian, try *.xl?

I think * assumes more than one character. ? is just one character.
The "*" indicates including anything( or nothing) from here on.
Rereading Brian's note you will see that it didn't find the file because it wasn't there. :D