On Jul 16, 2006, at 12:10 PM, Tim Jones wrote:

HI Joe,

Thanks for jumping in -

On Jul 16, 2006, at 10:54 AM, Joe Huber wrote:

No takers on this one? It's a real oddity as the obj.Text should be a string and work with the GetFolderItem call.

What's the text encoding of obj.text?

MacRoman (I've even made an explicit DefineEncoding call)


Have you tried assigning obj.text to a local string variable and then use that in GetFolderitem? Maybe there's something funny with the obj.text accessor when used directly as a parameter.

This will be my next test - thanks as I'd not considered that.

I've now converted the obj.Text to a local string variable and even used a test for VarType = 8 on the "obj.Text" variable. Still the same result - UnsupportedFormatException as soon as I call:

        f = GetFolderItem(strPath, FolderItem.PathTypeShell)

Have you tried testing with that path as a literal string constant just to understand whether the problem is related to the path itself or the fact that it's arriving in obj.text?

Yes - this I have done.

Actually, I take that back as if I insert a separate GetFolderItem call on a path, it is properly resolved. So now the question is what could be different about the obj.Text string contents and my forced 'strPath2 = "/Users/tjones"' string value.

Could MacRoman be a bad encoding? I've now also tried .ASCII, .MacRoman, and .SystemDefault

Tim
--
Tim Jones                                       [EMAIL PROTECTED]

_______________________________________________
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