array of lists

BlitzMax Forums/BlitzMax Programming/array of lists

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.

What are you *really* trying to do?
Do you really want a 50 by 50 array for lists?
It really makes things easier if you post the code you're having problems wit.
Here is a simple example :
Local array_of_lists:TList[2]
Local list1:TList=CreateList()
list1.addlast("1")
list1.addlast("2")
list1.addlast("3")
Local list2:TList=CreateList()
list2.addlast("7")
list2.addlast("8")
list2.addlast("9")
array_of_lists[0]=list1
array_of_lists[1]=list2
For Local x:Int=0 To 1
  For Local all:String=EachIn array_of_lists[x]
	  Print all
  Next
Next


<edit> Arrggghh you edited your post.