realbasic-nug
[Top] [All Lists]

Re: folderitem.Count returns incorrect value

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: folderitem.Count returns incorrect value
From: jim_meyer <jim_meyer at chartermi dot net>
Date: Wed, 29 Aug 2007 19:35:17 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 52521 dot 1188427733 dot 256 dot realbasic-nug at lists dot realsoftware dot com>
I have also run into this......  an ugly workaround is to "reset" the  
folderitem.....

......  so something like"

x = Folder.Count  //  this is
file.MoveFile to Folder
folder = getfolderitem(folder.absolutepath)  //  reset hack
x = Folder.Count  //  this should now be correct



Jim

On Aug 29, 2007, at 6:48 PM, realbasic-nug- 
request at lists dot realsoftware dot com wrote:

> Message: 21
> Date: Thu, 30 Aug 2007 00:12:55 +0200
> From: Erne <erne at apimac dot com>
> Subject: Folderitem.Count returns incorrect value
> To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
> Message-ID: <85A7CEA3-FB97-48FE-84C3-EC2CEE164071 at apimac dot com>
> Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
>       format=flowed
>
> Hello list,
>
> 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
>
>
> 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  Thu 30 Aug 2007 01:39:23 +0200
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 6CAE53F6767D; Wed, 29 Aug 2007 16:40:28 -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=-2.5 required=4.5 tests=AWL,BAYES_00 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 F09F03F67673;
        Wed, 29 Aug 2007 16:40:23 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id CF2555E0F97;
        Wed, 29 Aug 2007 18:40:08 -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 smtprelay05.ispgateway.de (smtprelay05.ispgateway.de
        [80.67.18.43])
        by lists.realsoftware.com (Postfix) with ESMTP id 366D15E0F8C
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Aug 2007 18:40:05 -0500 (CDT)
Received: (qmail 16110 invoked from network); 29 Aug 2007 23:40:15 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 91 dot 
102])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay05.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-nug at lists dot realsoftware dot com>; 29 Aug 2007 
23:40:15 -0000
To: realbasic-nug at lists dot realsoftware dot com (REALbasic NUG)
In-Reply-To: <348F8587-A2B2-430C-83DC-C8AF59B592A2 at chartermi dot net>
Subject: Re: folderitem.Count returns incorrect value
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Thu, 30 Aug 2007 01:39:23 +0200
Message-ID: <1i3mxx5 dot 14qv9cpr26cifM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
        Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.8 (Mac OS X version 10.4.9 (PPC))
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>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

jim_meyer <jim_meyer at chartermi dot net> wrote:

> folder =3D getfolderitem(folder.absolutepath)  //  reset hack

I think there is a copy constructor:

folder=3Dnew folderitem(folder)

Gru=DF
Christian

-- =

Over 800 classes with 15000 functions in one REALbasic plug-in. =

The Monkeybread Software Realbasic Plugin v7.4. =


<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>