How to add multiply items to a list quickly?

BlitzMax Forums/BlitzMax Beginners Area/How to add multiply items to a list quickly?

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.

Well you need to create 100 instances and add each one to the list. What you asked, would create 1 instance, and add it to the list 100 times.

do it like so...
for local i:int = 0 until 100
    mylist.AddLast(new mytype)
next