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>
|