realbasic-nug
[Top] [All Lists]

A quick question about folderitem.movefileto

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: A quick question about folderitem.movefileto
From: "Paul Rehill" <paul dot rehill at gmail dot com>
Date: Fri, 1 Feb 2008 10:27:16 +1100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
If I move all the files in a folder to another folder using
folderitem.movefileto, is it best to cycle through a loop from the
last item count to 1

For j = iCountFoldItems downto 1
   SomeFolder.Item(j).movefileto SomeFolderElsewhere
Next

Counting the other way doesn't seem to work as it appears half the
folderitems get moved as the item numbers of the files yet to be moved
decrease accordingly.

Is this right?

Thanks in advance

Paul Rehill
mathsteacher.com.au
RB2007R1 Windows and Mac
Plugins used:  MBS
_______________________________________________
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>