on 3/19/06 8:52 AM, Charles Yeomans <charles at declareSub dot com> wrote > > Well, let's see. SourceDictionary.Value returns a Variant. Variant does not > have an AbsolutePath property. So this will not compile. Instead you need to > do something like the following. > > dim f as FolderItem = SourceDictionary.Value(SourceDictionary.Key(j)) > //if the stored value is not a FolderItem, REALbasic will raise an > IllegalCastException > DoSomethingWith f.AbsolutePath > > or you could just do > > FolderItem(SourceDictionary.Value(SourceDictionary.Key(j)).ObjectValue). > AbsolutePath > > -------------- > Charles Yeomans
Wow... Thanks :) I' still not sure how I would use this to send the folderitem to a function. For example, previously I use: SourceList.Cell(SourceList.LastIndex,2)=getPermissions(itemInFolder) Where getPermissions calls the function and itemInFolder is the folderItem. When I try: Dim f as folderitem f=SourceDictionary.Value(SourceDictionary.Key(j)) TargetList.Cell(TargetList.LastIndex,2)=getPermissions(f) I get a Type Mismatch at the second line. All My Best, Jeffrey Umm... Sorry. Apparently I was getting the error on another line. The above works great. Thanks :) All My Best, Jeffrey _______________________________________________ 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>
