Exclude objects from For Next loop

BlitzMax Forums/BlitzMax Beginners Area/Exclude objects from For Next loop

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

you know you can change your object elimination to something like this
code sample:
Local List:TList= New TList
list.addlast("apple")
list.addlast("pear")
list.addlast("mango")
list.addlast("peach")
list.addlast("cherry")

Local list2:TList = list.copy()

For Local a$ = EachIn list
	Print a$
	list2.removefirst()
	For Local b$ = EachIn list2
		Print "  "+b$
	Next
Next 


I don't have too much experience with the time comsumption of list.copy() but I dought it will affect program execution that much.
[edit]
note: it only copy addresses, not objects but you knew that right?.