realbasic-nug
[Top] [All Lists]

Re: Folderitem.Count returns incorrect value

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Folderitem.Count returns incorrect value
From: Erne <erne at apimac dot com>
Date: Thu, 30 Aug 2007 21:22:20 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20070829224759 dot 48A457B30F6 at mail dot verex dot com>
On 30-ago-07, at 00:47, joe at strout dot net wrote:

> On Aug 29, 2007, at 22:12 UTC, Erne wrote:
>
>> I can't get correct Folderitem.Count after I move a file into a
>> folder like this:
>>
>> dim x as integer
>>
>> x = Folder.Count  //  this is 1
>> file.MoveFile to Folder
>> x = Folder.Count  //  this is still 1 but should be 2 x =
>> Folder.CountMBS  //  this is still 2 as it should be
>>
>> it also gets its correct value if I break into the debugger and
>> inspect the Folder there
>>
>> I'll bug it if nobody has done it yet
>
> Please do; it seems important.  Any of the FolderItem operations which
> could affect the file organization (such as MoveFile) should cause the
> framework to reexamine folder contents the next time you  
> call .Count or
> Item or whatever.  It sounds like it's not doing that for you.  Please
> let us know the feedback ID -- I'd like to watch that one.
>

Report ID:
fldvvooe



Cool Runnings,
Erne.

/ |\ |\  | /
– |/ | \ | –
\ |\ |  \| \

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