Page 1 of 1

Remove more than one element….

Posted: 21 Dec 2015 16:36
by schuster666
at a time from list.

Hi, is this possible?
I want to remove list index from 0 to 307 or 0 to {variable}.

Thanks for your help.

Re: Remove more than one element….

Posted: 21 Dec 2015 17:16
by MURTUMA
First define how many elements you want to delete and check the list length. Then use while loop.

while (list length >= original list length - elements to delete)
{Delete elements}

Re: Remove more than one element….

Posted: 21 Dec 2015 17:28
by schuster666
That is what i'm doing. I hoped that there is another solution.

Thank you

Re: Remove more than one element….

Posted: 21 Dec 2015 19:56
by Martin
It's the only way to remove elements at a specific index for now. I'll add a function to remove a range.

Re: Remove more than one element….

Posted: 21 Dec 2015 21:24
by schuster666
Thank you Martin