Get the correct form name in lookup window

It’s posible the variable globals.svy_nav_form_name have the correct name form in each case? depending if a tab form or a lookup window. Actualy in the lookup window have the name of the form wheere is called the lookup. Anyone knows to get the correct lookupwindow form or it’s imposible?