Hi Mark

Thanks for your advice. I knew that there might be a problem here nut
I only ever intended (in this instance) to delete items in lines and
not the lines themselves. I had forgotten about the down to option

Thanks for the reminder.

Regards

Ian Mcknight

On 24/05/06, Mark Schonewille <[EMAIL PROTECTED]> wrote:
Hi Ian,

When you delete items, the number of items gets smaller while the
variable that counts the items goes up. At some point, you're trying
to delete items that don't exist. Use "down to" to avoid this:

repeat with x = number of lines of myList down to 1
   delete line x of myList
end repeat

(in this simple example, you can also use "delete last item", obviously)

Best,

Mark


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to