On Oct 6, 2006, at 11:21 AM, [EMAIL PROTECTED] wrote:
You should have to loop from 1 to FolderItem.Count.
FolderItem.Item(0) unfortunately returns the parent directory.
I don't this is documented anywhere, so please people, don't rely
on it. Hopefully this will change eventually to be sane.
Right, this is undefined behavior.
It is better than getting a NIL object on index 0. The fact that
FolderItem.Item() and a few other older classes are 1-based really
throw me off! I kept getting NilObjectExceptions with
RecordSet.IdxField(0) and was thinking it was my SQL.
I hate to be blatantly logical, but I've always thought that
Folderitem.Item(0) refers to the item ".." in Unix - in other
words, the parent directory. ".." is always first item in a Unix
directory listing (if you are showing hidden files).
And without it existing that way there wouldn't be the current
hierarchal folder system. It's documentation is poor and the fact
that it is addressable is up to RS to solve.
Terry
_______________________________________________
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>