getParent

parte:getParent() → Parte

Ritorna la parte padre di <parte>. La parte radice TOP restituisce se stessa come padre (non nil).

 

Esempio 1. Esempio getParent

local prt   = top_ptop():find("BIELLA")
local padre = prt:getParent()
print("\nPadre: " .. padre:getName())
-- Nota: la radice TOP restituisce se stessa come padre