Hi Everyone.
I'm using the following code so that my RBScript can get Absolute
Paths to Folders/Files without rebuilding the FolderItem Class.
Protected Function parseFolderItemString(fstring As String) As String
Dim folderfitem As FolderItem
folderfitem = New FolderItem
folderfitem = mSiteBaseFolderItem
folderfitem = mSiteBaseFolderItem.Child( fstring )
Try
If folderfitem.Exists Then
Return folderfitem.AbsolutePath
Else
Return "FALSE"
End If
Catch Err as NilObjectException
Return "ERRFALSE"
End Try
End Function
Now, If I want to get that to be say two folders down the line, I use
FolderItem.GetRelative right? So I've changed
"mSiteBaseFolderItem.Child( fstring )" to
"mSiteBaseFolderItem.GetRelative( fstring )" - and yet, despite my
Try, Catch, this decides to show a nil object exeception in the
REALBASIC IDE!?!??!
Can anyone comprehend what is wrong with this code???
Giles.
_______________________________________________
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>