06-26-2015, 06:24 AM
The beauty of a macro program is that you can get the job done with more than one way.
Your method is pretty good though, but there are several other methods to get the same result.
Here are some of them that I can think of:
Macro temp1
Macro temp2
Macro temp3
Last but not least:
Macro temp4
Your method is pretty good though, but there are several other methods to get the same result.
Here are some of them that I can think of:
Macro temp1
str s1 s="S:\lev1\lev2\lev3\lev.last"
ARRAY(str) a
int ntok=tok(s a -1 "\")
s1=a[ntok-1]
out s1str s="S:\lev1\lev2\lev3\lev.last"
str s1=s
_s.getpath(s)
out s1.replace("" 0 _s.len)str s1 s="S:\lev1\lev2\lev3\lev.last"
_s.getpath(s)
out s1.get(s _s.len)
;or
;out s1.right(s s.len-_s.len)Macro temp4
