At 9:37 PM -0800 3/28/06, Jeffrey Ellis wrote:
I get a nilObject at this line:
TargetName = TargetFolder.trueitem(indexT).DisplayName
Well, this doesn't seem surprising to me -- indexT is not looping
over the contents of TargetFolder, but rather of currentFolderT:
for indexT = currentFolderT.Count DownTo 1
I haven't taken the time to fully understand your code, but it's
usually a mistake to be looping over the indices of one folder, but
trying to use those indices in a different folder. Seems like you
should either be looping from TargetFolder.Count, or getting items
from currentFolderT.
Also, your code will be clearer, somewhat faster, and easier to debug
if you introduce a temporary variable to represent each item:
Dim item As FolderItem = TargetFolder.TrueItem(indexT)
TargetName = item.DisplayName
TargetPath = item.ShellPath
HTH,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>