Search code examples
delphifiremonkeytscrollbox

get empty parent name in firemonkey if parent is an scrollbox


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

ShowMessage(Image1.Parent.Name);

Solution

  • This works fine :

    Image1.Parent.Parent.Name;