OJay #1 note, that you should always check, if the specified type-entry really exists, or else you will get a mav when accessing it.Function MyFunction(Alien.Aliens) If Alien = Null Then Return Alien\X=1 Alien\Y=2 end function