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 00:26:03 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <1i3mtxp dot h9d3u697hij0M%support at monkeybreadsoftware dot de>
On 30-ago-07, at 00:13, Christian Schmitz wrote:

> Erne <erne at apimac dot com> wrote:
>
>> Hello list,
>> x = Folder.Count  //  this is still 1 but should be 2
>> x = Folder.CountMBS  //  this is still 2 as it should be
>
> That is the reason I wrote CountMBS long ago.
>

Big thanks for doing it, you saved my day :-)

(well after a night battling with this to be true, can't believe such  
bugs can live for so long...)


Cool Runnings,
Erne.

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

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

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


From  Wed 29 Aug 2007 16:47:59 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 3EAE63F662EE; Wed, 29 Aug 2007 15:48:08 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
        www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-3.1 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 5E5D83F662E4;
        Wed, 29 Aug 2007 15:48:07 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id AA56E5E0C9E;
        Wed, 29 Aug 2007 17:47:51 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 1D49D5E0C93
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Aug 2007 17:47:48 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 48A457B30F6
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Aug 2007 16:47:59 -0600 (MDT)
Date: Wed, 29 Aug 2007 16:47:59 -0600
Subject: Re: Folderitem.Count returns incorrect value
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <85A7CEA3-FB97-48FE-84C3-EC2CEE164071 at apimac dot com>
X-Mailer: VerEx Email Gateway
Message-Id: <20070829224759 dot 48A457B30F6 at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

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.

Thanks,
- Joe

--
Joe Strout -- joe at strout dot net
Strout Custom Solutions, LLC

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

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


From  Wed 29 Aug 2007 16:49:04 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id F40833F6633D; Wed, 29 Aug 2007 15:49:13 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
        www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-3.1 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id CFE173F66331;
        Wed, 29 Aug 2007 15:49:12 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 181255E0CCE;
        Wed, 29 Aug 2007 17:48:57 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 236B55E0CB3
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Aug 2007 17:48:53 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 56A8D7B3118
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Aug 2007 16:49:04 -0600 (MDT)
Date: Wed, 29 Aug 2007 16:49:04 -0600
Subject: Re: [LINUX] popupmenu.addseparator
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <46D5EAA5 dot 8060800 at radicalbreeze dot com>
X-Mailer: VerEx Email Gateway
Message-Id: <20070829224904 dot 56A8D7B3118 at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On Aug 29, 2007, at 21:52 UTC, Bryan Lund wrote:

> Actually, both GTK and QT (recent versions anyway) have menu
> separators.

Good to know.  Hopefully RS will add support for them soon then!

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Strout Custom Solutions, LLC

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