06-26-2015, 02:05 AM
I need to store in a variable the last component of a folder path. I wonder whether there exists a more efficient and/or standardized way to do it, other than that in the following code :
Macro temp04
Many thanks in advance.
Macro temp04
str s="S:\lev1\lev2\lev3\lev.last"
str s2.getpath(s)
int i=len(s2)
str s3.get(s i)
out s3
Many thanks in advance.