get empty parent name in firemonkey if parent is an scrollbox

179 views Asked by At

how can i get parent name if parent is scrollbox.The following example return empty:

ShowMessage(Image1.Parent.Name);
1

There are 1 answers

0
M.MARAMI On BEST ANSWER

This works fine :

Image1.Parent.Parent.Name;