so essentially you have two folderitems, and you can dump them both
into two strings:
file:///D:/NotBackedUp/My%20Projects/RBStuff/directoryList/
dcs_toc.html
(we'll call this string1)
and
file:///D:/NotBackedUp/My%20Projects/RBStuff
(we'll call this string2)
Can you just do the following:
Relativestring = ReplaceAll( string1, string2, "" )
if your example case is as complex as things get, that should work fine.
mike
--
Mike Woodworth
[EMAIL PROTECTED]
On Feb 10, 2007, at 5:21 PM, Chris Raab wrote:
I can't seem to get my head around this problem and perhaps a
different set of eyes can help...
I'm getting a folderitem and assigning the URLPath of that
folderitem to a string variable.
itemPath = source.URLPath (where source is a folderitem and
itemPath is a string)
itemPath ends up looking like this:
file:///D:/NotBackedUp/My%20Projects/RBStuff/directoryList/
dcs_toc.html
and I really only want this part of it:
/directoryList/dcs_toc.html
and the size of it might vary based on the filename at the end.
of course the front end:
file:///D:/NotBackedUp/My%20Projects/RBStuff
could ALSO vary from one system to the next in both content and
length (obviously)
I guess I'm looking for a way to write out a RELATIVE URLPath from
a given location.
Am I missing something obvious??
Chris Raab
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>