If the button is on the page itself, then the parent of the button is the page. So:
string ls_name = parent.classname( )
If you need the name of the tab, simply follow the same logic - the parent of the page is the tab control itself.
If the button is on the page itself, then the parent of the button is the page. So:
string ls_name = parent.classname( )
If you need the name of the tab, simply follow the same logic - the parent of the page is the tab control itself.