Hi ted, Lists of list are not currently recognized as a valid data structure in the Script components.
Also, I recommend using List(Of T) instead of ArrayList, since it is a generic class that maintains type safety. -- David Rutten [email protected] Robert McNeel & Associates On Mar 25, 11:01 pm, ted <[email protected]> wrote: > Can anyone tell me why I cannot return usable information in nested > lists? In this example, I can build and access myList just fine and > print it correctly through the "out" output but the A output returns > <null>. Any help would be greatly appreciated, thanks. > > Dim myList As New ArrayList() > Dim oneLine As New ArrayList() > > Dim startPoint As On3dPoint = New On3dPoint(0, 0, 0) > Dim endPoint As On3dPoint = New On3dPoint(5, 5, 5) > > oneLine.Add(startPoint) > oneLine.Add(endPoint) > myList.Add(oneLine) > > print("startPoint = " & myList(0)(0).toString) > print("endPoint = " & myList(0)(1).toString) > > A = myList
