May 16, 2024, 01:49:00 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Puzzled...

Started by Brian, December 16, 2013, 11:33:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

December 16, 2013, 11:33:02 AM Last Edit: December 16, 2013, 11:42:11 AM by Brian Pugh
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!

Sam

Brian, try *.xl?

I think * assumes more than one character. ? is just one character.

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library