Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Last component of a folder path
#1
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
Code:
Copy      Help
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)