Doug Hennig has this replacement for SYS(14): 

http://doughennig.blogspot.com/2009/03/replacement-for-sys2014.html

However if the path of the "to" parameter is at the same level or below the 
path of the "from" parameter, it returns a value with a leading "\" which 
should not be there.  The following change in his code solves the issue - I 
have posted a comment on his blog


If Upper(Left(lcFrom,Len(lcFrom)-1)) == Upper(Left(lcTo,Len(lcFrom)-1))
        lcPath = SubStr(lcTo,Len(lcFrom))
Else
        PathRelativePathTo(@lcPath, @lcFrom, lnFromAttrib, @lcTo, lnToAttrib)
EndIf

Alternatively you could use this instead

lcPath = "..\" + SubStr(lcTo,Len(lcFrom))

Hope somebody finds this useful ...

Paul Newton

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to