findId

parte:findId(id: stringa) → Parte

Cerca ed eventualmente restituisce la parte con l'ID passato come parametro



Esempio 1. Esempio findId

local top = top_ptop()
local prt = top:new("Q_TEST")
local id = prt:getId()
local trovata = top:findId(id)
print("\nfindId(" .. tostring(id) .. ") = " .. (trovata and trovata:getName() or "nil"))
EraseEmptyParts(1)