On Oct 06, 2006, at 17:11 UTC, John Balestrieri wrote:

> In 2006r3 under OSX (carbon PEF) FolderItem.Count is returning the  
> Ubound of the folder items.

I'm not sure what you mean by that.  It should return the number of
items in the folder.

> So rather than intuitively looping from 0 to FolderItem.Count-1, I  
> have to loop from 0 to FolderItem.Count. Can anyone jog my memory.. I
> can't recall if this is the correct behavior or not?

No, you should loop from 1 to FolderItem.Count.  FolderItem.Count is
one of those historical leftovers that is 1-based, and changing it
would break too much code.  Note that FolderItem.Item(0) is undefined;
it happens to return the folder itself on my machine, but on other
machines or in other versions it may not do that, so you should avoid
using it.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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