realbasic-nug
[Top] [All Lists]

Re: Folderitem Paths different on v3.1 and v4

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Folderitem Paths different on v3.1 and v4
From: Norman Palardy <npalardy@great-white-software.com>
Date: Tue, 30 Sep 2008 11:50:21 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <D871B198-1C88-40F1-8C91-A000AC8A73EE@hughes.net>
References: <mailman.2360.1222787231.3042.realbasic-nug@lists.realsoftware.com> <D871B198-1C88-40F1-8C91-A000AC8A73EE@hughes.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 30-Sep-08, at 11:28 AM, Robert Lobsinger wrote:

List -

I'm getting a different folderitem path in 2008r4 than I get in 2008r3.1 for the following code line:

source = GetfolderItem("").Child("msmArchiveReader Libs")

In 2008r3.1 (which works) I get:
C:\Program Files\REALSoftware\RB2008BetaProjects\MiniStorage2008Betas \msmArchiveReader Libs

In 2008r4 (which doesn't work) I get:
C:\Program Files\REALSoftware\RB2008BetaProjects\MiniStorage2008Betas \DebugMiniStorage2008r5-RB08r4\msmArchiveReader Libs

The same code was tested in both RB versions with the Debug folder appearing in the same folder as the project code. The paths shown above are both absolute and shell path given in that version.

Why is the Debug folder stuck in the path on v4? This plays havoc with the "CopyFileOrFolder" method used a bit later in the code. Has something changed in v4 to cause this difference from v3.1?

This is related to a bug fix that is in 2008r4

GetFolderItem was in fact not behaving as documented

Since the change to how RB builds Windows apps this bug existed and GetFolderItem was, as your tests show, NOT giving you back a reference to the dir enclosing the application

Now it does

FYI you could just use
        source = GetfolderItem("msmArchiveReader Libs")

You might want to read <http://blog.great-white-software/blog/?p=284>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>