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.
Remove more than one element….
Moderator: Martin
- schuster666
- Posts: 52
- Joined: 13 Nov 2013 14:03
- Location: Germany / Neuss
Remove more than one element….
-- the world would be better without people--
-- but boring --
-- but boring --
Re: Remove more than one element….
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}
while (list length >= original list length - elements to delete)
{Delete elements}
- schuster666
- Posts: 52
- Joined: 13 Nov 2013 14:03
- Location: Germany / Neuss
Re: Remove more than one element….
That is what i'm doing. I hoped that there is another solution.
Thank you
Thank you
-- the world would be better without people--
-- but boring --
-- but boring --
Re: Remove more than one element….
It's the only way to remove elements at a specific index for now. I'll add a function to remove a range.
- schuster666
- Posts: 52
- Joined: 13 Nov 2013 14:03
- Location: Germany / Neuss
Re: Remove more than one element….
Thank you Martin
-- the world would be better without people--
-- but boring --
-- but boring --