New topic: why would FolderItem.PathTypeAbsolute not work?
<http://forums.realsoftware.com/viewtopic.php?t=31401> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Art Post subject: why would FolderItem.PathTypeAbsolute not work?Posted: Thu Dec 03, 2009 8:36 am Joined: Mon Sep 25, 2006 3:25 pm Posts: 276 When I debug these lines on my windows Pc, it shows the desired file doesn't exist. Code:ts = DecodeBase64(PArrayFile(rowcnt), Encodings.UTF8)//how the file name is stored offline pf = GetFolderItem(ts, FolderItem.PathTypeAbsolute) if pf.Exists = False Then and since it doesn't exist (but it does) it is a problem. The very curious thing is these lines with that same file seem to work elsewhere on this pc. How can I change this? What am I doing wrong? Sure, some people say PathTypeAbsolute shouldn't be used but I don't see a good alternative, and it works on the mac. Top timhare Post subject: Re: why would FolderItem.PathTypeAbsolute not work?Posted: Thu Dec 03, 2009 1:11 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 6882 Location: Portland, OR USA Absolute paths work better on Windows than Mac, so that's not your problem. Examine the bytes contained in ts very closely, either there's a stray byte or, more likely, it's resolving to some alternate byte sequence for some character. Some UTF-8 chars have more than one representation. I assume there are extended chars in the name because of the way you're using base64 to store them. Top Art Post subject: Re: why would FolderItem.PathTypeAbsolute not work?Posted: Fri Dec 04, 2009 5:36 am Joined: Mon Sep 25, 2006 3:25 pm Posts: 276 THanks, the base-64 is probably the problem, but in this current incarnation there are no utf8's. It does give me an idea. I don't need to store the full path since it's in the root folder for the program - the same folder. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
