I am looking to get part of my path name dynamically into a memory tag:
My path: Area/LSD/Well/tagname
If i use: left({PathToParentFolder},lastIndexOf({PathToParentFolder},"/"))
I can get back : Area/LSD/Well/
Or If i use: left({PathToParentFolder},IndexOf({PathToParentFolder},"/"))
I can get back : Area
But the one i need is: LSD
i cant use a dedicated number for the index, because the Area name will change and the name length will differ. any one have any ideas how i could accomplish this?
Thank you in advance…
Edit: I am using this in an ‘Expression’ memory tag in a UDT