| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: FolderItem.delete Oddities? |
| From: | Arnaud Nicolet <anic297@mac.com> |
| Date: | Tue, 31 Mar 2009 21:55:13 +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 |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <A0B9E68F-F447-4291-9727-E72D8648E1B4@online.de> |
| References: | <382799.72156.qm@web65614.mail.ac4.yahoo.com> <A0B9E68F-F447-4291-9727-E72D8648E1B4@online.de> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
Le 31 mars 09 à 20:41, Christian Dorn a écrit: No, because of some recent changes in Mac OS 10.5 (or coming changes in 10.6?) this shouldn't be done, IIRC. I think you'll find something on this matter in the archives...Maybe this page is of interest for you: http://www.declaresub.com/wiki/index.php/Delete_items_from_a_list After looking at that page, it appears a way isn't listed. So I wonder if the way I think of is actually bad.
I'd do that way:
dim i as integer
for i=0 to ubound(SomeArray)
if SomeArray(i).HasToBeDeleted then
SomeArray.Delete
i=i-1
end if
next
Well, it's similar to the first case, but still a bit different (for
loop instead of while, and less lines of code).
It's a bad one? _______________________________________________ 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: | Re: FolderItem.delete Oddities?, Thomas Tempelmann |
|---|---|
| Next by Date: | Re: FolderItem.delete Oddities?, Arnaud Nicolet |
| Previous by Thread: | Re: FolderItem.delete Oddities?, Kimball Larsen |
| Next by Thread: | Re: FolderItem.delete Oddities?, Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |