On Mar 24, 2006, at 5:17 PM, Jay Rimalrick wrote:
Function StringToFolderItem(f as FolderItem, s as
String) As FolderItem
dim outF as FolderItem = f
dim last as integer = CountFields(s,"\")
for x as integer = 1 to last
outF = outF.Child(NthField(s,"\",x))
next
return outF
End Function
Maybe instead of CountFields and NthField you could use split. That
would definitely save time on a long s. I've never noticed child
being slow, but I don't think I've ever needed to run it in a loop.
Kevin
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>