| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: FolderItem.delete Oddities? |
| From: | Thomas Tempelmann <tempelmann@gmail.com> |
| Date: | Tue, 31 Mar 2009 21:33:29 +0200 |
| 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; dkim=neutral (body hash did not verify) header.i=@gmail.com |
| Delivered-to: | listarchive@realsoftware.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=YwTYCpscEKXaJHT2uDuEUvrCZov+Yg7yt+QucKIqAXc=; b=eAC4PmRGGFR8lj0H5hedIl39E5rcoGCcxwRKntl/vrvuU4H2eTP1FitT3ivW5WDCL6 VO1Lckw8GpnWzTyMqcA0XSVjEez+pu3od/LzAeKL7viHhV9f9iJxc0ycCmGXpqhJlyoB PB5L4uetKD1MfDWF1EtilyEopcQ4opeIuw2Mw= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Oo1inPNFfndbcL+KZa48mnxqnKpWkHaqsG7aWl3TGY1uiUmHEwVTlHJSz9vcPi252n BIwdbTlldZbTCb+baJaf3wj1wsNAmGBgCpE6qRduu75ZTnZSojTChd2Z0xP5WxUavup3 VC/FVGPcw01WpeeP+rgq/T0hoMt9as8NSmkW4= |
| In-reply-to: | <382799.72156.qm@web65614.mail.ac4.yahoo.com> |
| References: | <E14D1190-E2BE-4E5A-BD5A-56B5ED3032EC@kimballlarsen.com> <382799.72156.qm@web65614.mail.ac4.yahoo.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Tue, Mar 31, 2009 at 20:29, Lennox Jacob <lenpartico@yahoo.com> wrote: > > What about for f.Count downto 1 instead of for i = 1 to f.Count? Can become quite Inefficient with larger directories! The best way is to first create an array of all items' FolderItem objects, then go over that array to delete them. See here: http://www.declaresub.com/wiki/index.php/Delete_a_non-empty_folder (Ah, Christian Dorn learned this already as well - although it's not because of a change in the OS but rather because of a change in the RB framework not to use older (deprecated) OS calls on OS X any more) -- Thomas Tempelmann, http://www.tempel.org/ _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | [ANN] OMMs 3.0, Bob Delaney |
|---|---|
| Next by Date: | Re: FolderItem.delete Oddities?, Arnaud Nicolet |
| Previous by Thread: | Re: FolderItem.delete Oddities?, Arnaud Nicolet |
| Next by Thread: | Re: FolderItem.delete Oddities?, Christian Dorn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |