In a message regarding FolderItem Child() creates slow code dated Fri, 24
Mar 2006 15:17:07 -0800 (PST), Jay Rimalrick said that ...

> anybody know why this code is slow and how I can make
> it faster?

As far as making it faster is concerned, have you tried

Function StringToFolderItem(f As FolderItem, s As String) As FolderItem
  Return f.Child(s)
End Function

This assumes you are calling it with something like
  dim s as String
  dim f as FolderItem
  s = "Documents and Settings\All Users\Application Data\Microsoft\Dr
Watson\drwtsn32.log"
  f = StringToFolderItem(Volume(0),s)



--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro



_______________________________________________
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>

Reply via email to