02-01-2008 01:08 PM
Oops, as Kenny K has mentioned, we may have spoke too soon. It seems the posted code needs a little tweaking. I am working on it, trying to figure it out. But it is a very good start.
Thanks everyone!
02-01-2008 01:12 PM
02-01-2008 01:17 PM
02-01-2008 01:18 PM
Thanks, Kenny K, I will use the Open G version. I hope someone from NI sees this post and gets to work on it.
I wonder if this has to do somehow with NI's internal representation of strings or paths, or paths converted from strings. Maybe internally a caret character is used to distinguish it as a string representing a path?
At least the Open G boys figured it out.
Thanks again!
02-01-2008 01:19 PM
02-01-2008 01:20 PM - edited 02-01-2008 01:21 PM
02-01-2008 01:27 PM
02-01-2008 01:31 PM - edited 02-01-2008 01:32 PM
02-01-2008 01:56 PM
Thanks, smercurio_fc! While we're at it, I think this is on topic. Aren't the only illegal characters for a filename ? < > | : / \ * " I think it's only those nine characters. So, if you're input box is only taking in a file name, without path info, I think you could only check for those nine characters. I could be wrong. Maybe a Windows expert is lurking around the forums?
You don't need to reply if I have this right, but please do if I have this wrong. I believe you've created a character set inside those sqaure brackets [ ] for your regular expression, and if any one of those characters is in the searched string, you'll get a number greater than zero for a return value. I hope this explains it to someone reading this post who might not have heard of regular expressions. They are pretty powerful and deserve a Google sometime. And some characters are special, and need to be "escaped", with a forward slash "\". Like \t means "tab".
Thanks again to all respondents!
02-01-2008 02:07 PM