12-23-2007 06:41 PM
Vasilich2004,
The development environment is not the same as creating an exe with debugging turned on. If you have the latest version of LabVIEW you can in fact enable debugging and the Current VIs Path will return the exact same information as if you did not have debugging enabled. The function you seem to have a problem with is absolutely, 100% consistent. It alwasy returns the path to where the VI is. What you seem to have a hard time understanding is that the VI can and does reside in different locations. You could have the VI in a folder, llb, or in an exe. What you see as a bug is not.
12-25-2007 12:50 PM - edited 12-25-2007 12:50 PM
12-25-2007 01:36 PM
I wouldn't use it because it would only work for applications. In the development environment it returns the path to the LabVIEW folder, which is usually not what you would want.
@TonP wrote:
why don't you use the App.Dir property for applications?
12-26-2007 11:45 AM
12-26-2007 02:42 PM
Vasilich2004 wrote:
If you use one language constantly it is not big problem. But if your projects use different languages than you have huge chance to forget small details ... Other couple excellent naming examples of LabVIEW are Structure and Cluster. Enjoy!I think I explain the problem and why it is the bug. I wouldn't continue this topic.
12-26-2007 03:13 PM
What are you talking about? What change?
@Vasilich2004 wrote:
changes in version 8.5 (I didn't have chance to see that) confirmed the BUG by NI. I translate this changes to normal language specially for you, Dennis.=======Yes, there is bug in our naming. We (NI) mixed real OS path with our internal structure and path strip (and (an)other functions) work unclear. So programmers have headache. We try to decrease the trouble and did that ... But we don't like to do changes because ...=======
12-27-2007 10:20 PM
12-28-2007 04:05 AM
12-28-2007 10:53 AM
Vasilich wrote "...But if your projects use different languages than you have huge chance to forget small details ... "
And therein lies the elegence of tst's approach.
It will even claw its way up out of llb's dev or exe environments, cross-platform or whatever.
Ben
12-28-2007 12:12 PM