ahhh, but the first is . not ..
mike
On Oct 6, 2006, at 2:21 PM, [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).
Andrew Keller
_______________________________________________
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>
_______________________________________________
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>