03-18-2019 04:04 PM
Have found a strange behaviour, can you check if it is a bug, or it was a bug in LV2011.
I need to convert input string to a path and check if it is absolute path or relative.
There is a problem when input string is a full name (including library):
library.lvlib:control.ctl
when converted to path it is modified to:
library.lvlib:\control.ctl
Added "\" makes it very wrong and it is absolute path now.
03-18-2019 04:57 PM
@Alexander_Sobolev wrote:
Have found a strange behaviour, can you check if it is a bug, or it was a bug in LV2011.
I need to convert input string to a path and check if it is absolute path or relative.
There is a problem when input string is a full name (including library):
library.lvlib:control.ctl
when converted to path it is modified to:
library.lvlib:\control.ctl
Added "\" makes it very wrong and it is absolute path now.
LabVIEW 2018 has the same result library.lvlib:\control.ctl
03-19-2019 03:42 AM
03-19-2019 10:49 AM
Hi all,
I agree that this looks like erroneous behavior, but I'm not sure what the developers intended here so I'll need to check. In the meantime, an easy workaround would be to append ".\" to filepaths in the current directory.
Best,
Duncan Waldrop
Applications Engineer
National Instruments
03-19-2019 01:54 PM
thols,
it would, but it is still absolute
Are they just checking presence of a colon?
03-20-2019 01:24 AM
@Alexander_Sobolev wrote:
thols,
it would, but it is still absolute
No, not if you just add a backslash directly before the colon. But if you add something else before the colon (like "\b") then yes.
I meant like: "library.lvlib\:control.ctl".