scsjc Well-Known Member Licensed User Longtime User Apr 11, 2017 #1 Hello, I have a list and I add elements every xxx times. I want remove old elements and only want have on list the xxx last elements. Thanks.
Hello, I have a list and I add elements every xxx times. I want remove old elements and only want have on list the xxx last elements. Thanks.
Jeffrey Cameron Well-Known Member Licensed User Longtime User Apr 11, 2017 #2 * Disclaimer - code not tested * B4X: Do While MyList.Size > 100 MyList.RemoveAt(0) Loop Upvote 0