OK I have an array of types, easy enough. The array can contain 1 or more elements for each type (I would like to do a case for no type as well but I'm going for simplicity). Now how can I return from my array of types ALL the elements of the array of types.
I've tried this and variations on it but it doesn't work. What am I missing?
Any ideas?
I want to return the complete array (1 to 100) with all elements of the type (however many there may be) and disregard any null elements.
How do you do this?
Thanks,
Darkheart
I've tried this and variations on it but it doesn't work. What am I missing?
Graphics 800,600,32,2 SetBuffer BackBuffer() Type cars Field wheels End Type Dim race.cars(100) For i=1 To 100 c=6 While c>=5 b=Rnd (4) If b>=2 Then race(i)= New cars race(i)\wheels=Rand (4) EndIf c=Rnd(10) Wend Next For m=1 To 100 For s=Each cars Print race(m).s\wheels Next Next
Any ideas?
I want to return the complete array (1 to 100) with all elements of the type (however many there may be) and disregard any null elements.
How do you do this?
Thanks,
Darkheart