Create a function DrawAll() on TSatellite like these:
with TSatellite.DrawAll() you then can call that.
Its very bad OO design to iterate over a local list from outside the class actually and it defeats the purpose of classes complete (encapsulated functionality)
Type TSAtellite ... Function DrawAll() for local t:TSatellite = eachin SatelliteList t.draw() next end function end type
with TSatellite.DrawAll() you then can call that.
Its very bad OO design to iterate over a local list from outside the class actually and it defeats the purpose of classes complete (encapsulated functionality)