08-28-2008 09:21 AM
Hello,
i added a simple example vi where i have a path-control and a "Not-a-Number/Path/Refnum?" and as output a boolean.
The boolean should be false if the path is correct and true if the path is invalid.
Then i insert as path the value "c:\abc|||def.txt". When i run the vi then the path is valid.
But this is not a valid name in Windows so why is it displayed as valid? I cant create a file manually in with this name.
Thanks for any help
08-28-2008 09:31 AM
08-28-2008 09:39 AM
The vertical bar or "pipe" symbol can't be used in filenames, but it is a valid character within a command or "DOS" enviroment. You could use it as "type c:\myfile.txt | more" and that would pipe the myfile.txt through the more program a page at a time.
Also, I believe the function just checks whether what you have could be a path. Not whether it is a valid or invalid path.
The function is called "Not a Path" rather than "Not a Valid Path"![]()
08-28-2008 09:45 AM
08-28-2008 09:54 AM
08-28-2008 10:02 AM
I mean the path-control in my example where i use the "Not a path".
I saw the other examples how to solve it. But i still want to know for what i can use the "Not a path"-thing.
08-28-2008 10:17 AM
Not a path is the Tag <Not a path> and can be found under File-I/O -> path constants as a Not A Path Contant.vi
Several file vis will also return that constant if cancelled (file dialog) or an error occures.
Felix