Passing a type to a function

Blitz3D Forums/Blitz3D Beginners Area/Passing a type to a function

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