Um, I'm passing it a string, not a FolderItem ( such as "path/to/file" )

Should it pick this up - and thanks, I've now realised I shouldn't be using this :)

Thanks,
Giles.

On 2 Sep 2006, at 18:25, Mark Nutter wrote:



--- Giles Williams <[EMAIL PROTECTED]> wrote:

Now, If I want to get that to be say two folders down the line,
I use
FolderItem.GetRelative right?

Um, no. FolderItem.GetRelative takes the folder's SaveInfo (as
returned by FolderItem.GetSaveInfo), and returns a reference to
the FolderItem pointed to by the SaveInfo (or nil if there's not
enough info in the SaveInfo to reconstruct a reference to the
original FolderItem).

Are you saying it causes the IDE to crash with a nil object
exception when you pass GetRelative a FolderItem as an argument?
If so, that's a bug in the IDE.  It should flag the line as a
syntax error, since GetRelative takes SaveInfo and not FolderItem
as its argument, but it shouldn't crash the IDE.


Mark Nutter

Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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>

_______________________________________________
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