Michael Aivaliotis Posted February 16, 2007 Report Share Posted February 16, 2007 Don't know if this is a bug or a feature request: Can the list folder function accept multiple wildcard patterns? Quote Link to comment
eaolson Posted February 16, 2007 Report Share Posted February 16, 2007 QUOTE(Michael_Aivaliotis @ Feb 15 2007, 04:13 PM) Don't know if this is a bug or a feature request:Can the list folder function accept multiple wildcard patterns? Edit: I know the OpenG List Folder VI handles this, I was just wondering why the NI one doesn't. I'd just like to point out that the semicolon is a valid character in a filename, at least in Windows. So this would actually reduce the functionality of the list folder function. It seems to me it would ideally accept an array of patterns, rather than a single delimited string. Quote Link to comment
Darren Posted February 16, 2007 Report Share Posted February 16, 2007 Sounds like a good feature request...the List Folder function currently does not support specifying multiple patterns on the 'pattern' input. -D Quote Link to comment
Michael Aivaliotis Posted February 16, 2007 Author Report Share Posted February 16, 2007 Sure, ";" is a valid char., however the help states: QUOTE The pattern matching in this function is similar to the matching used in matching wildcards in Windows and LinuxThe Windows file dialogs accept ";" as a seperator. Also, The LV File dialog function accepts ";" as a delimiter for pattern input. This is used to filter the directory listing. From the help in the file dialog:QUOTE To match multiple patterns, use a semicolon ( ; ) to separate the patterns. White space, such as blanks, tabs, and carriage returns, are taken literally. Avoid using white spaces unless they are part of the extension pattern. For example, if you use *.html;*.doc, the dialog box displays all files that end with .html and .doc. If you use *.html; *.doc, the dialog box displays only files that end with .html. So all i'm stating is that there is a descrepancy somewhere. Quote Link to comment
eaolson Posted February 17, 2007 Report Share Posted February 17, 2007 QUOTE(Michael_Aivaliotis @ Feb 15 2007, 05:39 PM) The Windows file dialogs accept ";" as a separator. Also, The LV File dialog function accepts ";" as a delimiter for pattern input. This is used to filter the directory listing. From the help in the file dialog: You also can't use ; when searching for files in Windows. It seems to ignore the ignore the character completely. So I guess the question becomes: which is better, a function that works in every case, or one that prevents you from doing certain things, but gives you some extra functionality in exchange? Quote Link to comment
torekp Posted March 2, 2007 Report Share Posted March 2, 2007 Your wish is granted - sort of. This may be a bit of overkill. Labview 8.0. It accepts an array of strings for "patterns"; it will not accept a single string. You have my blessing to polymorphize it though http://forums.lavag.org/index.php?act=attach&type=post&id=5086 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.