FieldDoc, an alternative is to use a linked list, like this
Type utPlanetInfo
strName As String
nStart As Integer
nLength As Integer
EndType
Global Dim InOrbit(-1) As Integer
Global Dim autPlanetInfo(-1) As utPlanetInfo
For each object in the array autPlanetInfo, it can maintain the position of the starting point of the InOrbit array entries and the number of entries required. All you do is maintain the Global array InOrbit for all objects that are added to autPlanetInfo.
At the moment, DarkBASIC Professional does not support arrays in user defined types, but you can achieve the same requirement by using the above method, or any other method that suits the task at hand.... Thats how I've done it anyway.
APEX!