Returning the Complete Array of types

Blitz3D Forums/Blitz3D Programming/Returning the Complete Array of types

Like this:

Graphics 800,600,32,2
SetBuffer BackBuffer()
Type cars
Field wheels
End Type

Dim race.cars(100)
For i=1 To 10
For h=1 To 3
race(i)= New cars
race(i)\wheels=Rand (4)
Next
Next
For m=1 To 10
For rc(m).cars=Each cars
Print r
Delay 100
Next
Next


But let's say that as it is in my real code (which is too long and has too many dependancies to use for this) the creation of additional elements in the type is conditional so I don't know how many there will be. However I then want to be able to pull up a specific index number e.g. (4) and use do something with all the elements of (4). But only those which have index number 4 and ignore the other elements.

Darkheart