03-01-2008 04:42 PM
03-01-2008 05:03 PM
You can copy to root folder. The vi is working fine, except that in the inner case you give a wrong path as an input.
Hilight, use a probe, and you will see...
03-01-2008 05:08 PM
03-01-2008 05:31 PM - edited 03-01-2008 05:31 PM
You should never use strings as paths, except for embedding in string displays (such as your error case) or OS specific tasks and (e.g. system exec).
Use path datatypes, not strings. Use "build path" and "Strip path" and use string operations only for the "name" portion of paths. This makes your code universal.
Use plain path constants and eliminate all the "string to path" and "path to string" primitives. (for a similar issue, see e.g. this example). Things will fall much better in place.
Also, your "not a path" primitive use seems incorrect because it only checks if the path is properly formed, it does NOT check if the file or path actually exists. There is another tool to do that.
Here's a picture of how I would probably do some of that. 😉
03-02-2008 04:16 AM
03-02-2008 12:07 PM
Pnt wrote:
You can wire an error cluster directly to the "?" of a case structure too.
03-03-2008 12:20 AM
I was referring to mrbean's vi (i did not made it clear).
As a general coding style: No need to unbungle an error cluster, to wire it to a case structure.
03-03-2008 01:48 AM
Ahh, OK. 🙂
Pnt wrote:
I was referring to mrbean's vi (i did not made it clear).